09.03.2011, 11:51
(
Последний раз редактировалось Madsen; 12.03.2011 в 11:54.
)
hey is there a way when i can do like
m4w = 1
or
sw = 1
then i can only type the /leave command(so i cant use commands like /heal, /respawn etc..)
i can show you what i have made so far.
thx for your help
m4w = 1
or
sw = 1
then i can only type the /leave command(so i cant use commands like /heal, /respawn etc..)
i can show you what i have made so far.
Код:
if (strcmp("/leave", cmdtext, true, 10) == 0)
{
if(m4w[playerid] == 1)
{
SpawnPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 1);
sw[playerid] = 0;
m4w[playerid] = 0;
SetPlayerPos(playerid, 292.8136,-35.3702,1001.5156);
return 1;
}
else
if(sw[playerid] == 1)
{
SpawnPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 1);
sw[playerid] = 0;
m4w[playerid] = 0;
SetPlayerPos(playerid, 292.8136,-35.3702,1001.5156);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_NORMALRED, "You can only use this command while in war");
return 1;
}
}


