23.03.2009, 21:31
Код:
if(strcmp(cmdtext, "/atalk", true) == 0) { if (IsPlayerAdmin(playerid)) { new string[256]; format(string, 256, "[!] %s ",cmdtext[4]); SendClientMessageToAll(GetPlayerColor(playerid), string); } return 1; }
if(strcmp(cmdtext, "/atalk", true) == 0) { if (IsPlayerAdmin(playerid)) { new string[256]; format(string, 256, "[!] %s ",cmdtext[4]); SendClientMessageToAll(GetPlayerColor(playerid), string); } return 1; }
if(!strcmp(cmdtext, "/atalk", true))
{
if(IsPlayerAdmin(playerid) && cmdtext[6] != EOS)
{
new
string[128];
format(string, 128, "[!] %s ", cmdtext[7]);
return SendClientMessageToAll(GetPlayerColor(playerid), string);
}
return 0;
}
Originally Posted by lrZ^
My version of it
pawn Код:
|
Originally Posted by lrZ^
My version of it
pawn Код:
|
if(!strcmp(cmdtext, "/atalk", true))
{
if(IsPlayerAdmin(playerid))
{
if(cmdtext[6] != 32 || cmdtext[7] == EOS) //just a check
return SendClientMessage(playerid, COLOR_RED, "USAGE: /atalk [message]");
new
string[128];
format(string, 128, "[!] %s ", cmdtext[7]);
return SendClientMessageToAll(GetPlayerColor(playerid), string);
}
return 0;
}
Originally Posted by pen_†ĥęGun
Код:
if(!strcmp(cmdtext, "/atalk", true, 6)) Quote:
|