Can Anyone Help[+REP]
#4

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.
Reply


Messages In This Thread
Can Anyone Help[+REP] - by Iloveimpulse - 29.07.2014, 20:58
Re: Can Anyone Help[+REP] - by SickAttack - 29.07.2014, 21:06
Re: Can Anyone Help - by youssefehab500 - 29.07.2014, 21:07
Re: Can Anyone Help[+REP] - by Iloveimpulse - 30.07.2014, 08:51
Re: Can Anyone Help[+REP] - by Sawalha - 30.07.2014, 09:03
Re: Can Anyone Help[+REP] - by Iloveimpulse - 30.07.2014, 10:27
Re: Can Anyone Help[+REP] - by Iloveimpulse - 30.07.2014, 18:22
Re: Can Anyone Help[+REP] - by SickAttack - 30.07.2014, 18:27
Re: Can Anyone Help[+REP] - by Iloveimpulse - 30.07.2014, 18:28
Re: Can Anyone Help[+REP] - by SickAttack - 30.07.2014, 18:30

Forum Jump:


Users browsing this thread: 4 Guest(s)