address issue with clerks giving too much xp

This commit is contained in:
Lorenc Pekaj 2018-10-06 12:54:20 +10:00
parent 1ea84952ae
commit aa00cd6346

View File

@ -551,6 +551,7 @@ function OnPlayerHoldupStore( playerid, clerkid, step )
SendServerMessage( playerid, "You have successfully robbed "COL_GOLD"%s"COL_WHITE" from "COL_GREY"%s"COL_WHITE".", cash_format( robbedNpc ), g_robberyNpcData[ clerkid ] [ E_NPC_NAME ] );
}*/
GivePlayerExperience( playerid, E_ROBBERY, 0.8 );
PlayerPlaySound( playerid, 5201, 0.0, 0.0, 0.0 );
} else {
PlayerPlaySound( playerid, 5205, 0.0, 0.0, 0.0 );
@ -560,7 +561,6 @@ function OnPlayerHoldupStore( playerid, clerkid, step )
return SendError( playerid, "A money exploit occurred. Contact Lorenc ASAP." );
GivePlayerCash( playerid, amount );
GivePlayerExperience( playerid, E_ROBBERY, 0.8 );
SetPVarInt( playerid, sprintf( "robbedNpc_%d", clerkid ), robbedNpc );
PlayerTextDrawSetString( playerid, p_RobberyAmountTD[ playerid ], sprintf( "Robbed ~g~~h~%s", cash_format( robbedNpc ) ) );
}