23.08.2011, 22:08
pawn Код:
CMD:motoron(playerid, params[])
{
new carro = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, COR_CINZA1, " Vocк nгo estб em um carro ");
if(Gas[carro] < 1.1)
return SendClientMessage(playerid,255,"O carro tб sem gasolina fdp!!!!!!!!!!!!!!!!!!");
if(motor[playerid] == 0)
{
new mot, lu, alar, por, cap, porma, ob;
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
motor[playerid] = 1;
SendClientMessage(playerid, COR_VERDEGRANA, " Carro ligado ");
}
return 1;
}