Am o problema
#1

PHP код:
if(strcmp(cmd"/unrentallcars"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pAdmin] < 1340)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"[Eroare]: Ne pare rău,dar nu esti autorizat să folosesti această comandă!");
                return 
1;
            }
            for(new 
0MAX_PLAYERSi++)
            {
                if(
HireCar[i] != 299)
                {
                    if(
idcar == HireCar[i])
                    {
                        
TogglePlayerControllable(i1);
                    }
                    
SetVehicleToRespawn(HireCar[i]);
                    
gCarLock[HireCar[i]] = 0;
                    
UnLockCar(HireCar[i]);
                    
HireCar[i] = 299;
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "SERVER: All rented cars unrented by {FF9900}%s{FFFFFF}."sendername);
                    
BroadCast(COLOR_WHITE,string);{return 1;}
                }
            }
        }
        return 
1;
    } 
Orice player o poate folosi spunetimi cum pot da sa o folosesca doar admini va rog frumos!
Reply
#2

Foloseste IsPlayerAdmin.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)