06.04.2012, 21:03
This will work,rep me + if i helped you
Quote:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { if(GetVehicleModel(GetPlayerVehicleID(playerid) == 432)) { if(GetPlayerScore(playerid) < 50)) { //Line 213 SendClientMessage(playerid, COLOR_RED, "You need to gain 50 score to drive Tanks"); RemovePlayerFromVehicle(playerid); } } if(GetVehicleModel(GetPlayerVehicleID(playerid) == 425)) { if(GetPlayerScore(playerid) < 30)) { //Line 221 SendClientMessage(playerid, COLOR_RED, "You need to gain 30 score to pilot Hunters"); RemovePlayerFromVehicle(playerid); } } if(GetVehicleModel(GetPlayerVehicleID(playerid) == 520)) { if(GetPlayerScore(playerid) < 25)) { //Line 229 SendClientMessage(playerid, COLOR_RED, "You need to gain 25 score to pilot Hydras"); RemovePlayerFromVehicle(playerid); } } if(GetVehicleModel(GetPlayerVehicleID(playerid) == 447)) { if(GetPlayerScore(playerid) < 15)) { //Line 237 SendClientMessage(playerid, COLOR_RED, "You need to gain 15 score to pilot Seasparrows"); RemovePlayerFromVehicle(playerid); } } } return 1; } |