SA-MP Forums Archive
SendDeathMessage @ OnPlayerConnect - 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: SendDeathMessage @ OnPlayerConnect (/showthread.php?tid=272443)



SendDeathMessage @ OnPlayerConnect - Lorenc_ - 28.07.2011

Hey everyone, each time I connect this code never appears to show the player(s) in-game not sure why

pawn Код:
public OnPlayerConnect(playerid)
{
    if(!IsPlayerConnected(playerid)) return 1;
    printf("Passed");
    SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
    printf("Passed");
    return 1;
}
So when I connect it wont appear, do I need to be spawned? The disconnect icon seems to work though not this for some reason. I tried to do everything I possibly can to fix this. No hope. Any tips/help?


Re: SendDeathMessage @ OnPlayerConnect - Guest3598475934857938411 - 28.07.2011

Код:
SendDeathMessage(INVALID_PLAYER_ID,playerid,200);
There you go, just fixed it for ya.


Re: SendDeathMessage @ OnPlayerConnect - Lorenc_ - 29.07.2011

Thanks so much, I tried something like that but it didn't work

+5 from me


Re: SendDeathMessage @ OnPlayerConnect - Guest3598475934857938411 - 29.07.2011

No problem at all. Glad I helped you :3