IsPlayerconnect
#1

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?
Reply
#2

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

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!");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)