Whats wrong?
#1


pawn Код:
#define PLAYER_WEAPONS 1
new gPlayerWeapons[2][2];
// ---------
public OnPlayerDeath(playerid, killerid, reason)
{
    new WeaponPickup;
    new Float:PlayerPosX;
    new Float:PlayerPosY;
    new Float:PlayerPosZ;
   
    GetPlayerPos(playerid, PlayerPosX, PlayerPosY,PlayerPosZ);
    gPlayerWeapons[][] = GetPlayerWeapon(playerid);
    WeaponPickup = CreatePickup(1240, 3, PlayerPosX, PlayerPosY, PlayerPosZ);
    return 1;
}
// --------
public OnPlayerPickupPickup(playerid, pickupid)
{
    if (pickupid == PLAYER_WEAPONS)
    {
        for (new i=0; i<=2; i++)
        {
            GivePlayerWeapon(playerid, gPlayerWeapons[i][], gPlayerWeapons[][i]);
        }
    }
    return 1;
}
Reply
#2

Everything.

lol, why do you ask us what's wrong, you should be the one who knows that best!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)