onplayerconnects Need i tiny help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: onplayerconnects Need i tiny help! (
/showthread.php?tid=215220)
onplayerconnects Need i tiny help! -
Elmerz_com - 23.01.2011
Wen a player connects to the server how can i make it show that they connected with out any words or letters on the chat. only with a little picture were it show wen i player dies.
Re: onplayerconnects Need i tiny help! -
Lorenc_ - 23.01.2011
Its some SendDeathMessage function, search it around the forum, someone revealed it
Re: onplayerconnects Need i tiny help! -
Marricio - 23.01.2011
https://sampwiki.blast.hk/wiki/SendDeathMessage
(SendDeathMessage of when player connect is 200 and disconnect 201)
Re: onplayerconnects Need i tiny help! -
Elmerz_com - 23.01.2011

dont understand nothing.
Re: onplayerconnects Need i tiny help! -
Not available - 23.01.2011
You were already given the answer, look at the Wiki it actually tells you exactly what to do.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
return 1;
}
If you only want it to display whenever a player connects/disconnects and not other deaths do this:
pawn Код:
public OnPlayerConnect(playerid)
{
SendDeathMessage(playerid, playerid, 200);
return 1;
}
Re: onplayerconnects Need i tiny help! -
Marricio - 23.01.2011
delete
Re: onplayerconnects Need i tiny help! -
Elmerz_com - 23.01.2011
Thanks!
Re: onplayerconnects Need i tiny help! -
Elmerz_com - 23.01.2011
no,no,no what i want is that when i player connects it show how connected to the server in a little pic like when a player dies. i want both!
Re: onplayerconnects Need i tiny help! -
iFriSki - 23.01.2011
pawn Код:
public OnPlayerConnect(playerid)
{
SendDeathMessage(playerid, playerid, 200);
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
SendDeathMessage(playerid, playerid, 201);
return 1;
}
Re: onplayerconnects Need i tiny help! -
Elmerz_com - 23.01.2011
i will tyr that!