22.02.2010, 17:57
pawn Код:
//------------------[CC]--------------------------------------
if(strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerConnected(playerid)) // Removed the ; here
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
GameTextForAll("Chat cleared!", 1000,1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
}