03.10.2014, 20:05
Intenta asн:
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(EsAutoLSPD(vehicleid) && Informacion[playerid][pFaccion] != 1)
{
RemovePlayerFromVehicle(playerid);
new Float:slx, Float:sly, Float:slz;
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+1.0);
SendClientMessage(playerid, -1, "No eres de esta facciуn!!");
}
else
{
if(!Informacion[vehicleid][aComprado])
{
SendClientMessage(playerid, -1, "{FFFFFF}El vehнculo se encuentra a la venta, si deseas comprarlo utiliza {FFFF00}/comprarveh");
}
else
{
SendClientMessage(playerid, -1, "{FFFFFF}Utiliza {FFFF00}/arrancar {FFFFFF}para encender el vehнculo");
}
}
}
return 1;
}