01.08.2012, 14:26
CMDeatbelt(playerid, params[])
{
if(GetVehicleType(vehicleid) != Model_Car) return SendClientMessage(playerid, COLOR_RED, "ERROR: You can only perform this command in a car.");
//rest of the code
}
can be easly
if(IsPlayerInAnyVehicle(playerid) ) return .....
{
if(GetVehicleType(vehicleid) != Model_Car) return SendClientMessage(playerid, COLOR_RED, "ERROR: You can only perform this command in a car.");
//rest of the code
}
can be easly
if(IsPlayerInAnyVehicle(playerid) ) return .....