26.05.2011, 08:36
Quote:
Make a variable :
pawn Код:
pawn Код:
pawn Код:
|
pawn Код:
new bool:HasMinigun[MAX_PLAYERS];
pawn Код:
COMMAND:lol(playerid, params[])
{
HasMinigun[playerid] = true;
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] = false;
}