25.01.2010, 13:47
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if (GetPlayerVehicleID(playerid) == 497) { if (GetPlayerScore(playerid) < 5 ) { RemovePlayerFromVehicle(playerid); GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5); SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help."); } } if (GetPlayerVehicleID(playerid) == 487) { if (GetPlayerScore(playerid) < 5 ) { RemovePlayerFromVehicle(playerid); GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5); SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help."); } } if (GetPlayerVehicleID(playerid) == 563) { if (GetPlayerScore(playerid) < 5 ) { RemovePlayerFromVehicle(playerid); GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5); SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help."); } } if (GetPlayerVehicleID(playerid) == 548) { if (GetPlayerScore(playerid) < 5 ) { RemovePlayerFromVehicle(playerid); GameTextForPlayer(playerid, "~r~Removed from Vehicle - Score not high enough",4000,5); SendClientMessage(playerid, COLOR_RED , "Kicked from vehicle - Score too low. Read /scoreinfo for help."); } } return 1; }
Any ideas?(;