31.10.2011, 19:29
Desta forma vocк estб setando apenas para o jogador.
SetPVarInt(playerid, "Engine", 0);
SetPVarInt(playerid, "Engine", 0);
pawn Код:
if((newkeys == 8192) && (IsPlayerInAnyVehicle(playerid)))
{
new vid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == 0)
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Ligas-te o carro!!");
}
else
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,boot,boot,objective);
SendClientMessage(playerid, COLOR_WHITE, "Desligas-te o carro!!");
}
return 1;
}