Posts: 1,018
Threads: 320
Joined: Jul 2010
Hello. So I have offline command /offcheck and what I want is that if admin use that command on online player then I want to send him a message you cannot use this command on online player. I use sscanf like
if(sscanf(params,"s[128]",offnick))
Thanks.
Posts: 1,018
Threads: 320
Joined: Jul 2010
Quote:
Originally Posted by Mencent
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;
}
|
Thank you mencent work perfect