[help] Giving /kick access to only admins
#1

Hello i created the following command
PHP код:
CMD:kick(playerid,params[])
{
new 
id;
if(
sscanf(params"d"id))return SendClientMessage(playerid0xFFFFFFFF"How to use: '/kick [playerid]'");
else if(!
IsPlayerConnected(id))return SendClientMessage(playerid0xFF0000FF"Invalid Player ID");
else
{
    
Kick(id);
}
return 
1;

But i want that only admins (IsPlayerAdmin) can /kick players and if a simple user (not admin) try to use it get a message " You are not Admin".
Reply


Messages In This Thread
[help] Giving /kick access to only admins - by Arxalan - 24.12.2014, 15:14
Re: [help] Giving /kick access to only admins - by UltraScripter - 24.12.2014, 15:18
Re: [help] Giving /kick access to only admins - by Arxalan - 24.12.2014, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)