24.12.2011, 16:35
Wow. Just do the inverse to what you've done here.
Save the user's previous position like so:
And then afterwards, spawn him back without his minigun
Save the user's previous position like so:
pawn Код:
new Float:PrePos[MAX_PLAYERS][3];
GetPlayerPos(playerid, PrePos[playerid][0], PrePos[playerid][1], PrePos[playerid][2]);
pawn Код:
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid, PrePos[playerid][0], PrePos[playerid][1], PrePos[playerid][2]);