Quote:
Originally Posted by SickAttack
"How to show ID like Deadly[6]"
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; }
"How to add that when player connects like this one and when he disconnects"
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; }
"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
|
For the Deadly[6] thing i got thing error
Код:
F:\Server\gamemodes\Impulse1.pwn(21) : error 021: symbol already defined: "format"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.