SA-MP Forums Archive
Whats wrong? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats wrong? (/showthread.php?tid=156956)



Whats wrong? - shoru93 - 24.06.2010


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;
}



Re: Whats wrong? - Finn - 24.06.2010

Everything.

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