1
mIRC/pawn Scripting / Re: help me
« on: January 09, 2011, 05:23:48 pm »Code: [Select]
if(strcmp(cmd,"!fix",true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_GREY,"You're not in a vehicle!");
else if ( (GetPlayerVehicleID(playerid) == 155) || ( GetPlayerVehicleID(playerid) == 177) ) SendClientMessage(playerid,COLOR_RED,"You cant fix this vehicle");
return 1;
}
else {
SetVehicleTyre(GetPlayerVehicleID(playerid), 1);
SetVehicleLights(GetPlayerVehicleID(playerid), 1);
SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
SendClientMessage(playerid,COLOR_YELLOW,"Your car has been fixed!");
return 1;
}
return 1;
}
i think this might work ( im not sure about if its "else if" or "elseif" )