26.05.2011, 02:16
Make a variable :
when the player uses the command set the variable to 1:
And on the other teleport cmds do this :
and under ResetPlayerWeapons add the GivePlayerWeapon as u want
pawn Код:
new HasMinigun[MAX_PLAYERS];
pawn Код:
COMMAND:lol(playerid, params[])
{
HasMinigun[playerid] = 1;
SetPlayerPos(playerid, 1457.7526,-1062.9589,213.382;
SendClientMessage(playerid, COLOR_RED , "gamhthite!");
GivePlayerWeapon(playerid, 10, 9999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_PURPLE, "phges sto -lol-");
return 1;
}
pawn Код:
if(HasMinigun[playerid] == 1)
{
ResetPlayerWeapons(playerid);
HasMinigun[playerid] = 0;
}