26.05.2010, 00:58
pawn Код:
if(strcmp(cmd, "/x1convite", true) == 0) {
new string[256];
new PlayerName2[MAX_PLAYER_NAME];
new RecName[MAX_PLAYER_NAME];
GetPlayerName(recieverid, RecName, sizeof(RecName));
GetPlayerName(playerid, PlayerName2, sizeof(PlayerName2));
if(recieverid != playerid)
{
GetPlayerName(playerid, PlayerName2, sizeof(PlayerName2));
GetPlayerName(recieverid, RecName, sizeof(RecName));
format(string, sizeof(string), "[X1-GArfield] %s Convidou Vocк Para um Duelo X1", PlayerName2);
SendClientMessage(recieverid,COR, string);
format(string, sizeof(string), "[X1-GArfield] Vocк Convidou %s Para um Duelo X1", RecName,recieverid);
SendClientMessage(playerid,COR, string);
SetPlayerPos(CORDENADA);
}
else
{
format(string, sizeof(string), "[ERRO] Esse player nгo esta Online!", recieverid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
Tenta Assim xD
Vou ver se funfa aqui.