31.01.2013, 15:01
PHP код:
if(strcmp(cmd, "/fuelcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new TD_String[25];
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new veh = 1; veh <MAX_VEHICLES;veh++)
{
new SecondFuel = VehicleFuel[veh] % 10,
FirstFuel = (VehicleFuel[veh] - SecondFuel) / 10;
VehicleFuel[veh] = 1000;
format(TD_String, 25, "%i.%i",FirstFuel,SecondFuel);
}
TextDrawSetString(Text:Values[playerid][3], TD_String);
SendClientMessage(playerid, COLOR_RED, "• Toate Masinile au fost umplute de combustibil! •");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not an Admin ! ");
return 1;
}
}
return 1;
}