[Help] Last position
#7

Im adding on to what he posted above:

pawn Код:
new Float: gPos[MAX_PLAYERS][3];// Global
new weapons[13][2];

CMD:afk(playerid)
{
    for (new i = 0; i <= 12; i++)
    {
            GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
    }
    ResetPlayerWeapons(playerid);
    GetPlayerPos(playerid, gPos[playerid][0], gPos[playerid][1], gPos[playerid][2]);
    SetPlayerPos(playerid, ...);
    return 1;
}

CMD:back(playerid)
{
    SetPlayerPos(playerid, gPos[playerid][0], gPos[playerid][1], gPos[playerid][2]);
    for (new i = 0; i <= 12; i++)
    {
             GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]);
    }
    return 1;
}
indention might be off as I just wrote this inside of the window.
Reply


Messages In This Thread
[Help] Last position - by Glossy42O - 04.11.2014, 09:14
Re: [Help] Last position - by Stinged - 04.11.2014, 09:28
Re: [Help] Last position - by Glossy42O - 04.11.2014, 09:56
Re: [Help] Last position - by Glossy42O - 04.11.2014, 09:58
Re: [Help] Last position - by Banana_Ghost - 04.11.2014, 10:02
Re: [Help] Last position - by Glossy42O - 04.11.2014, 10:04
Re: [Help] Last position - by Banana_Ghost - 04.11.2014, 10:11
Re: [Help] Last position - by DavidBilla - 04.11.2014, 10:11
Re: [Help] Last position - by Glossy42O - 04.11.2014, 10:26
Re: [Help] Last position - by Banana_Ghost - 04.11.2014, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)