After Pickup [HELP]
#1

Could anyone tell me how to edit this to. If I pick up the cuffin it disappear on my screen, but when someone pick it up it doesn't destroy on their screen but they can pick it up. How do other player destroy the pickup object after they pick it up??



pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
                if(pickupid == tombstonePickups[i])
                {
                new tombstring[MAX_PLAYER_NAME+20];
                GetPlayerName(i,tombstring,MAX_PLAYER_NAME);
                strins(tombstring, "~g~+$400 ~n~~r~Coffin of:~n~~w~", 0);
                GameTextForPlayer(playerid,tombstring,3000,3);
                DestroyPickup(tombstonePickups[playerid]);
                tombstonePickups[playerid] = -1;
                GivePlayerMoney(playerid, 400);
                break;
                }
        }
        return 1;
}
Reply


Messages In This Thread
After Pickup [HELP] - by kbalor - 08.09.2012, 11:39
Re: After Pickup [HELP] - by JaKe Elite - 08.09.2012, 11:43
Re : After Pickup [HELP] - by lelemaster - 08.09.2012, 12:23
Re: Re : After Pickup [HELP] - by kbalor - 08.09.2012, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)