02.04.2018, 00:08
Veja se resolve :
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new ExpID = GetProxExp(playerid);
if(Pickup[ExpID] == pickupid)
{
new GranaExp = randomEx(50, 100), Str[55];
format(Str,sizeof(Str), "Vocк roubou R$%i,00", GranaExp);
SendClientMessage(playerid, LARANJA, Str);
GivePlayerMoney(playerid, GranaExp);
DestroyPickup(Pickup[ExpID]);
Pickup[ExpID] = 0xFFFF;
}
return true;
}