29.07.2014, 21:06
"How to show ID like Deadly[6]"
"How to add that when player connects like this one and when he disconnects"
"also if he dies show a death icon"
https://sampwiki.blast.hk/wiki/SendDeathMessage
"Also How to make a Welcome Dialog after Players Login"
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampforum.blast.hk/showthread.php?tid=379247
pawn Код:
format(string, sizeof(string), "%s[%d]", PlayerName(playerid), playerid);
stock PlayerName(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
return pname;
}
pawn Код:
public OnPlayerConnect(playerid)
{
new string[144];
format(string, sizeof(string), "* %s[%d] has joined the server!", PlayerName(playerid), playerid);
SendClientMessageToAll(0xFFFFFFFF, string)
return 1;
}
public OnPlayerDisconnect(playerid)
{
new string[144];
format(string, sizeof(string), "* %s[%d] has left the server!", PlayerName(playerid), playerid);
SendClientMessageToAll(0xFFFFFFFF, string)
return 1;
}
https://sampwiki.blast.hk/wiki/SendDeathMessage
"Also How to make a Welcome Dialog after Players Login"
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampforum.blast.hk/showthread.php?tid=379247