Problems
#8

Quote:
Originally Posted by yusei
Посмотреть сообщение
Try
PHP код:
    if(strcmp(cmd"/jetpack"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
            
SendClientMessage(playeridCOLOR_LIGHTRED"You are now using Jetpack!");
             
SetPlayerSpecialAction(playerid,2);
              return 
1;
        }
     } 
That would make that any player can use it


I suppose u are running 3 lvl admin system couse 4th is rcon
PHP код:
    if(strcmp(cmd"/jetpack"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
                
SendClientMessage(playeridCOLOR_LIGHTRED"You are now using Jetpack!");
                
SetPlayerSpecialAction(playerid,2);
                return 
1;
            }
            else
            {
                
SendClientMessage(playerid,COLOR_GREY,"You can't use this command!");
                return 
1;
            }
        }
     } 
If u want to change the admin level usment of this cmd just change this part [pAdmin] >=1) to 2 or 3
PHP код:
 if (PlayerInfo[playerid][pAdmin] >= 1
Reply


Messages In This Thread
Problems - by Madalyinn - 16.05.2014, 16:43
Re : Problems - by yusei - 16.05.2014, 16:45
Re: Problems - by weedxd - 16.05.2014, 16:48
Re: Problems - by Madalyinn - 16.05.2014, 16:50
Re: Problems - by weedxd - 16.05.2014, 16:57
Re: Problems - by Madalyinn - 16.05.2014, 16:59
Re : Problems - by yusei - 16.05.2014, 17:04
Re: Re : Problems - by weedxd - 16.05.2014, 17:12
Re: Problems - by Madalyinn - 16.05.2014, 17:15
Re: Problems - by weedxd - 16.05.2014, 17:16

Forum Jump:


Users browsing this thread: 8 Guest(s)