16.10.2013, 17:12
Hello,
So i want to add to my GM,Freeze all and unfreeze all commands for admins but i get errors
Code:
dcmd_adfreezeall(playerid,params[])
{
new string[128];
new ID;
new cmdreason[100];
for(new i = 0; i < MAX_PLAYERS; i++)
IsFrozen[i] =1;
format(string,sizeof(string),"[ADMIN] %s(%d) has frozen all the players for reason: %s.",PlayerName(playerid),playerid,PlayerName(ID), cmdreason);
SendClientMessageToAll(COLOR_ADMIN,string);
TogglePlayerControllable(i,0);
format(string,sizeof(string),"9[ADMIN] Administrator has frozen %s(%d) for reason: %s.",PlayerName(ID),ID,cmdreason);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}
So i want to add to my GM,Freeze all and unfreeze all commands for admins but i get errors
Code:
dcmd_adfreezeall(playerid,params[])
{
new string[128];
new ID;
new cmdreason[100];
for(new i = 0; i < MAX_PLAYERS; i++)
IsFrozen[i] =1;
format(string,sizeof(string),"[ADMIN] %s(%d) has frozen all the players for reason: %s.",PlayerName(playerid),playerid,PlayerName(ID), cmdreason);
SendClientMessageToAll(COLOR_ADMIN,string);
TogglePlayerControllable(i,0);
format(string,sizeof(string),"9[ADMIN] Administrator has frozen %s(%d) for reason: %s.",PlayerName(ID),ID,cmdreason);
IRC_GroupSay(gGroupID,IRC_CHANNEL,string);
return 1;
}