11.08.2009, 02:48
Ok, I got the IDs and set the IDs, but for some reason it kicks the player out no matter what car he is in, or what faction... this is how it looks:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { if(GetPlayerVehicleID(playerid) == 65 || 66 || 67 || 68 || 69 || 70 || 71 || 72 || 73 || 74 || 75 || 76 || 77 || 78 || 79 || 80 || 81 || 82 || 83 || 84 || 85 || 86 && Faction[playerid] != 3) { SCM(playerid, COLOR_RED, "You are not a police officer!"); new string[128]; format(string,128,"vehicle id: %d",GetPlayerVehicleID(playerid)); SendClientMessage(playerid,COLOR_RED,string); RemovePlayerFromVehicle(playerid); } } else if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == 65 || 66 || 67 || 68 || 69 || 70 || 71 || 72 || 73 || 74 || 75 || 76 || 77 || 78 || 79 || 80 || 81 || 82 || 83 || 84 || 85 || 86 && Faction[playerid] == 3) { SCM(playerid, COLOR_WHITE, "Police Vehicle"); } return 1; }