25.09.2010, 18:06
Well, I just got scriptfile, and I want to put it into Gamemode, but it will perhaps cause a choas, so, is there any way to type like
#include <GAMEMODE NAME>
Or something
So I can use the gamemode feature into Scriptfile like
This command exist in scriptfile, except one line, look below
#include <GAMEMODE NAME>
Or something
So I can use the gamemode feature into Scriptfile like
This command exist in scriptfile, except one line, look below
pawn Код:
if(!strcmp("/specoff", cmdtext, false, 9))
{
if (gTeam[playerid] == 0) // This line only works in gamemode..
{
if(Spectating[playerid] == 1)
{
TogglePlayerSpectating(playerid, 0);
SendClientMessage(playerid, 0xFFFFFFAA, "You stopped spectating.");
return 1;
}
else return SendClientMessage(playerid, 0xFF3300AA, "ERROR: You aren't spectating anyone!");
}
return 1;
}