29.05.2010, 00:13
The command runs through, but the engines don't turn off..
pawn Код:
if(strcmp(cmd, "/allenginesoff", true) == 0)
{
if(gAdminOnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "You must be on duty to use this command!");
return 1;
}
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 6 && PlayerInfo[playerid][pRealAdmin] == 1)
{
for(new v; v < MAX_VEHICLES; v++)
{
FactionCar[v][fcEngine] = 0;
CInfo[v][cEngine] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Invalid admin level, you cannot use this command");
}
return 1;
}