26.12.2010, 19:01
ta ae, adapte:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string00[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(strcmp(cmdtext, "/atentadodp", true) == 0) {
format(string00,sizeof(string00),"%s vai fazer atentando na dp",sendername);
SendClientMessageToAll(0xF60000AA,string00);
return 1;
}
if(strcmp(cmdtext, "/atentadoaero",true) == 0) {
format(string00,sizeof(string00),"%s vai fazer atentando no aero",sendername);
SendClientMessageToAll(0xF60000AA,string00);
return 1;
}
if(strcmp(cmdtext, "/atentadopredio", true) == 0) {
format(string00,sizeof(string00),"%s vai fazer atentando no predio",sendername);
SendClientMessageToAll(0xF60000AA,string00);
return 1;
}
return 0;
}