04.03.2009, 13:38
Indent you code in the right way.
pawn Код:
if (strcmp(cmd, "/shout", true) == 0 )
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "[!] You must first register or login! Please use !help for commands.");
return 1;
}
new str[256], pname[256];
GetPlayerName(playerid, pname, 256);
format(str, 256, "[SHOUT]%s %s", pname, cmdtext[4]);
SendClientMessageToAll(pCol, str);
return 1;
}
}