sscanf
#1

Hi,

Now i use

Код:
new PLAYERNAME;
if (sscanf(params, "u", PLAYERNAME ) )
{
SendClientMessage( playerid, COLOR_RED,"* Bad name");
return 1;
}
To check is player in game i need only do that?

Код:
if( PLAYERNAME == INVALID_PLAYER_ID)
{
SendClientMessage(playerid,COLOR_RED,"*Player not connected");
return 1;
}
Reply
#2

https://sampwiki.blast.hk/wiki/IsPlayerConnected
Reply
#3

Just this
PHP код:
if(!IsPlayerConnected(PLAYERNAME)) return SendClientMessage(playeridCOLOR_RED"Player not connected!"); 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)