Create Gift Pickups OnPlayerDeath
#9

pawn Код:
new GiftOwner[MAX_PICKUPS];
// OnGameModeInit
for(new i = 0; i < MAX_PICKUPS; i++)
{
    GiftOwner[i] = INVALID_PLAYER_ID;
}
// OnPlayerDeath
if(killerid != INVALID_PLAYER_ID)
{
    new pickupid = CreatePickup(19054,8,X,Y,Z, 0);
    GiftOwner[pickupid] = killerid;
}

// OnPlayerPickupPickup
if(GiftOwner[pickupid] != INVALID_PLAYERID && GiftOwner[pickupid] == playerid)
{
    // your code here
    GiftOwner[pickupid] = INVALID_PLAYER_ID;
    DestroyPickup(pickupid);
}
Reply


Messages In This Thread
Create Gift Pickups OnPlayerDeath - by danish007 - 14.12.2014, 19:36
Re: Create Gift Pickups OnPlayerDeath - by MD5 - 14.12.2014, 19:38
Re: Create Gift Pickups OnPlayerDeath - by danish007 - 14.12.2014, 19:41
Re: Create Gift Pickups OnPlayerDeath - by danish007 - 14.12.2014, 19:58
Re: Create Gift Pickups OnPlayerDeath - by mahdi499 - 14.12.2014, 20:21
Re: Create Gift Pickups OnPlayerDeath - by danish007 - 14.12.2014, 20:34
Re: Create Gift Pickups OnPlayerDeath - by danish007 - 15.12.2014, 06:16
Re: Create Gift Pickups OnPlayerDeath - by Divergent - 15.12.2014, 06:20
Re: Create Gift Pickups OnPlayerDeath - by rickisme - 15.12.2014, 06:37
Re: Create Gift Pickups OnPlayerDeath - by Threshold - 15.12.2014, 07:29

Forum Jump:


Users browsing this thread: 3 Guest(s)