[HELP] check if player is online when using offline command
#2

Hello!

Do you mean it like that?
PHP код:
CMD:offcheck(playerid,params[])
{
    new 
pID;
    if(
sscanf(params,"u",pID))return SendClientMessage(playerid,-1,"Use /offcheck [playerid]");
    if(
IsPlayerConnected(pID))
    {
        
SendClientMessage(playerid,-1,"you cannot use this command on online player");
        return 
1;
    }
    
//If the player isn't connected
    
return 1;

Reply


Messages In This Thread
[HELP] check if player is online when using offline command - by Luca12 - 04.04.2015, 08:14
AW: [HELP] check if player is online when using offline command - by Mencent - 04.04.2015, 08:22
Re: [HELP] check if player is online when using offline command - by Sellize - 04.04.2015, 08:59
Re: AW: [HELP] check if player is online when using offline command - by Luca12 - 04.04.2015, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)