23.12.2014, 22:12
if(strcmp(cmd, "/fixveh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerData[playerid][pAdmin] < 4)
{
SendError(playerid,cmd);
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_WHITE, "Masina reparata cu {ADFF2F}succes{ffffff}.");
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerData[playerid][pAdmin] < 4)
{
SendError(playerid,cmd);
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_WHITE, "Masina reparata cu {ADFF2F}succes{ffffff}.");
}
}
return 1;
}