25.06.2008, 13:40
Quote:
Originally Posted by Andre9977
OKStyle: how do you plan detecting whether player uses R2 or R3? This is impossible in R2 server (functions) so far.
|
Ex:
pawn Код:
new cmd[30];
new idx;
cmd = strtok(cmdtext, idx);
if(!strcmp(cmd, "/senderror", true))
{
new tmp[30],tmp2[16],string[256];
new otherplayer = strval(tmp);
new typeofclient = strval(tmp2);
if(!strlen(tmp)) return SendClientMessage(playerid,0xFF0000AA,"Usage: /senderror [id] [text]");
if(!strlen(tmp2)) return SendClientMessage(playerid,0xFF0000AA,"Usage: /senderror [id] [text]");
return format(string,sizeof(string),"%s",cmdtext) SendError(otherplayer,typeofclient,string);
}