/gotols /gotosf /gotolv
#2

You've made
PHP код:
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playeridCOLOR_REDNOTADMIN); 
then else
You could make it with two ways the 1st is:
PHP код:
 if(PlayerInfo[playerid][pAdmin] >= 2
          {
                 
PlayerInfo[playerid][pInt] = 0
                 
SetPlayerInterior(playerid0); 
                 
SetPlayerPos(playerid1258.7352,-2036.7100,59.4561); 
                 
SendClientMessage(playeridCOLOR_WHITE"You have been teleported to Los Santos!"); 
           }
            else
               {
                           
SendClientMessage(playerid, -1NOTADMIN); //If NOTADMIN Is defined
                
}
                return 
1;

OR
PHP код:
 if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playeridCOLOR_REDNOTADMIN); 
    { 
//without else
        
PlayerInfo[playerid][pInt] = 0
        
SetPlayerInterior(playerid0); 
           
SetPlayerPos(playerid1258.7352,-2036.7100,59.4561); 
           
SendClientMessage(playeridCOLOR_WHITE"You have been teleported to Los Santos!"); 
    } 
    return 
1

Reply


Messages In This Thread
/gotols /gotosf /gotolv - by Jaua10 - 05.06.2018, 00:59
Re: /gotols /gotosf /gotolv - by mmostafa - 05.06.2018, 01:22
Re: /gotols /gotosf /gotolv - by Sew_Sumi - 05.06.2018, 01:29
Re: /gotols /gotosf /gotolv - by Jaua10 - 05.06.2018, 01:33
Re: /gotols /gotosf /gotolv - by Sew_Sumi - 05.06.2018, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)