IsPlayerconnect - 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)
+--- Thread: IsPlayerconnect (
/showthread.php?tid=504658)
IsPlayerconnect -
audriuxxx - 05.04.2014
Hi,
I want to ask. When player connect to sa-mp, and then how much time have to pass, then i can to check IsPlayerConnected, a spefic ID? or OnPlayerConnect will be called first, and just then player will be connected, i mean isPlayerConnected will be showing that that id is connected?
Re: IsPlayerconnect -
Dokins - 05.04.2014
As soon as the player is connected, you can check it with
pawn Код:
IsPlayerConnected(playerid);
Although, I'm not sure why you'd want to under OnPlayerConnect, but you can.
Re: IsPlayerconnect -
ChristianIvann09 - 05.04.2014
Quote:
Originally Posted by audriuxxx
Hi,
isPlayerConnected will be showing that that id is connected?
|
Yes, as far as the player is connected to your server..
For example
Код:
if(IsPlayerConnected(giveplayerid));
{
// Your Codes
} else SendClientMessage(playerid, COLOR_WHITE, "Invalid player id, Maybe player isnt connected!");