24.07.2016, 03:41
Parameters of CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld)
Set type to 3 : Disappears after pickup, respawns after death.
By the way you can optimize your code.
Set type to 3 : Disappears after pickup, respawns after death.
By the way you can optimize your code.
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(pickid)
{
case cash : GivePlayerMoney(playerid,100);
case cash2 : GivePlayerMoney(playerid,100);
case cash3 : GivePlayerMoney(playerid,100);
case cash4 : GivePlayerMoney(playerid,100);
case cash5 : GivePlayerMoney(playerid,100);
}
return 1;
}