04.11.2014, 10:11
pawn Код:
new AWeapons[13][2];
new Float: gPos[MAX_PLAYERS][3];// Global
CMD:afk(playerid)
{
GetPlayerPos(playerid, gPos[playerid][0], gPos[playerid][1], gPos[playerid][2]);
SetPlayerPos(playerid, ...);
for(new i=0;i<=12;i++)
{
GetPlayerWeaponData(playerid,i,AWeapons[i][0],AWeapons[i][1]);
}
ResetPlayerWeapons(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,AWeapons[i][0],AWeapons[i][1]);
}
// ...
return 1;
}