#include <a_samp>
public SetPlayerNameWithCountry(playerid, country[]);
public SetPlayerNameWithCountry(playerid, country[])
{
new string[128], playername[16];
GetPlayerName(playerid, playername, 16);
strdel(playername, 0, 16);
format(string, 128, \"[%s]%s\", country, playername);
SetPlayerName(playerid, string);
return 1;
}
az \'strdel\' -t // -ozd be, úgy teszteld, ha nem jó, szedd ki elole a // -t.
példa a használatra:
case 0:
{
Language[playerid] = 0;
SendClientMessage(playerid, 0x00C2ECFF, \"Köszönjük hogy belléptél magyar ember !\");
SetPlayerNameWithCountry(playerid, \"HUN\");
}
case 1:
{
Language[playerid] = 1;
SendClientMessage(playerid, 0x00C2ECFF, \"Thank you connect the server english man !\");
SetPlayerNameWithCountry(playerid, \"ENG\");
}