30.12.2010, 21:10
Sistema simples de PM que eu mesmo fiz
/pm [ID] [Texto]
/pm [ID] [Texto]
pawn Код:
if(strcmp(cmd, "/pm", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid, 0xFF0000AA, "USO: /pm [ID] [Texto]");
}
new ID;
ID = strval(tmp);
if(!strlen(tmp))
{
return SendClientMessage(playerid, 0xFF0000AA, "USO: /pm [ID] [Texto]");
}
new Nome[MAX_PLAYER_NAME];
new String[128];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "PM De %s: %s",Nome, cmdtext[6]);
SendClientMessage(ID,0xFFFF00AA,String);
return 1;
}