14.12.2014, 19:58
HERE IS MY CODE:
On Top
Under OnPlayerDeath( ... )
On Top
PHP код:
new GiftPickup[MAX_PLAYERS];
PHP код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
GiftPickup[playerid] = CreatePickup(19054,8,X,Y,Z, 0);
PHP код:
Under OnPlayerPickupPickup( ... )
if(pickupid == GiftPickup[playerid])
{
//gifts
//merry xmas
DestroyPickup(GiftPickup);
}