29.07.2011, 20:26
pawn Код:
new Float:LastPos[MAX_PLAYERS][3];
new LastWeapons[MAX_PLAYERS][14][2];
pawn Код:
GetPlayerPos(playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]);
for(new i=0; i < sizeof(LastWeapons[]); i++)
{
GetPlayerWeaponData(playerid, i, LastWeapons[playerid][i][0], LastWeapons[playerid][i][1]);
}
pawn Код:
SetPlayerPos(playerid, LastPos[playerid][0], LastPos[playerid][1], LastPos[playerid][2]);
for(new i=0; i < sizeof(LastWeapons[]); i++)
{
GivePlayerWeapon(playerid, LastWeapons[playerid][i][0], LastWeapons[playerid][i][1]);
}