DM zone help???
#7

Quote:
Originally Posted by marinov
Посмотреть сообщение
Make a variable :
pawn Код:
new HasMinigun[MAX_PLAYERS];
when the player uses the command set the variable to 1:
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;
}
And on the other teleport cmds do this :
pawn Код:
if(HasMinigun[playerid] == 1)
{
ResetPlayerWeapons(playerid);
HasMinigun[playerid] = 0;
}
and under ResetPlayerWeapons add the GivePlayerWeapon as u want
I would suggest a boolean

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;
}
Reply


Messages In This Thread
DM zone help??? - by eleosreman - 25.05.2011, 16:40
Re: DM zone help??? - by Ernests - 25.05.2011, 18:11
Re: DM zone help??? - by eleosreman - 25.05.2011, 18:29
Re: DM zone help??? - by marinov - 26.05.2011, 02:16
Re: DM zone help??? - by eleosreman - 26.05.2011, 06:55
Re: DM zone help??? - by susanexpress1 - 26.05.2011, 07:19
Re: DM zone help??? - by Lorenc_ - 26.05.2011, 08:36
Re: DM zone help??? - by eleosreman - 26.05.2011, 10:24

Forum Jump:


Users browsing this thread: 2 Guest(s)