10.10.2010, 17:47
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new tmp[256];
new tmp2[256];
new idx;
new plid;
plid = strval(tmp2);
cmd = strtok(cmdtext, idx);
tmp = strtok(cmdtext, idx);
if(strcmp(cmd, "/procurar", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /procurar [ID] [Motivo]");
return 1;
}
new ID;
ID = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USO: /procurar [ID] [Motivo]");
return 1;
}
if(strcmp(tmp,"Assalto",true) == 0)
{
SetPlayerWantedLevel(plid, 3);
}
return 1;
}
return 0;
}