Certain Score To Enter Tank?
#1

How can i make it so u can only drive a tank with 50 score??
Reply
#2

Get model ID, score, etc. Second. I make example

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) == 432)
    {
        if(GetPlayerScore(playerid) < 50) RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
Try this.
Reply
#3

Thankyou so much works perfectly
Reply
#4

No problem! I hope you understand the functions so you can do it yourself next time :P
Reply
#5

Yah i basically tried that under OnPlayerEnterVehicle but it failed xD You acually tought me a bit more about OnPlayerStateChange thanks again! Appreciate It!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)