19.04.2015, 12:04
[pawn]COMMAND:salut(playerid, params[])
{
new string[144],
name[MAX_PLAYER_NAME+1],
othername[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
foreach(new i : Player)
{
if(i == playerid)
continue;
GetPlayerName(i, othername, sizeof(othername));
format(string, sizeof(string), "Salut %s ! Je suis %s.", othername, name);
SendClientMessage(i, -1, string);
}
return 1;
}[/pawn]
Quelque chose du style?
{
new string[144],
name[MAX_PLAYER_NAME+1],
othername[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
foreach(new i : Player)
{
if(i == playerid)
continue;
GetPlayerName(i, othername, sizeof(othername));
format(string, sizeof(string), "Salut %s ! Je suis %s.", othername, name);
SendClientMessage(i, -1, string);
}
return 1;
}[/pawn]
Quelque chose du style?