27.05.2014, 09:12
I put that scrip at OnPlayerStateChange, and when a get in the car which is reserved:
That script above does not work, but if I delete the script (which is the cause), the gamemode works perfectly:
pawn Код:
if(IsAmayorCar(newcar))
{
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7) { }
else {
SendClientMessage(playerid,COLOR_GREY,"* You are not a {66FF00}Parliamentary {808080}member !");
RemovePlayerFromVehicle(playerid);
}
}
pawn Код:
if (newstate == PLAYER_STATE_DRIVER)
{
if(Engine[vehicle] == 0)
{
SendClientMessage(playerid,COLOR_GREY,"* Press {FFCC00}'2'{FFFFFF} to start engine.");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY, "Engine is {66FF00}running...");
}
}