/fuelcars
#9

PHP код:
if(strcmp(cmd"/fuelcars"true) == 0)
                    {
                        if(
IsPlayerConnected(playerid))
                        {
                            new 
TD_String[25];
                            if(
PlayerInfo[playerid][pAdmin] >= 4)
                            {
                                for(new 
veh 1veh <MAX_VEHICLES;veh++)
                                   {
                                       new 
SecondFuel VehicleFuel[veh] % 10,
                                    
FirstFuel = (VehicleFuel[veh] - SecondFuel) / 10;
                                    
VehicleFuel[veh] = 1000;
                                    
format(TD_String25"%i.%i",FirstFuel,SecondFuel);
                                }
                                
TextDrawSetString(Text:Values[playerid][3], TD_String);
                                
SendClientMessage(playeridCOLOR_RED"• Toate Masinile au fost umplute de combustibil! •");
                            }
                            else
                            {
                                
SendClientMessage(playeridCOLOR_GREY"   You are not an Admin ! ");
                                return 
1;
                            }
                        }
                        return 
1;
                    } 
Only the admin that types /fuelcars get 100.0 the other dont get ..why??please help....
Reply


Messages In This Thread
/fuelcars - by Akcent_Voltaj - 30.01.2013, 14:08
Re: /fuelcars - by Roach_ - 30.01.2013, 15:35
Re: /fuelcars - by Akcent_Voltaj - 30.01.2013, 19:37
Re: /fuelcars - by Threshold - 30.01.2013, 19:45
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 10:57
Re: /fuelcars - by Threshold - 31.01.2013, 11:01
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 12:05
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 13:52
Re: /fuelcars - by Akcent_Voltaj - 31.01.2013, 15:01

Forum Jump:


Users browsing this thread: 1 Guest(s)