Vehicle permissions
#1

Hello, I have everything defined..
I just want it
pawn Код:
if(GetPlayerscore(playerid) < 100)
It prevents him from entering a rhino (ID:432)

Any help?
Reply
#2

Rules and Guidelines
"Search before posting, why wait for a solution? You could probably find the solution much faster by simply searching!"

Apparently no one reads this.

This is extremely easy btw, just ****** it.

http://******itfor.me/?q=sa-mp+lock+vehicles
Reply
#3

haha @Kindred i love them links xD

On topic: 2 seconds to make this, let me know if it works:
pawn Код:
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
    if(GetVehicleModel(vehicleid) == 432)
    {
        if(GetPlayerScore(playerid) < 100)
        {
            SendClientMessage(playerid,-1,"You need 100 score to be able to use this vehicle");
            ClearAnimations(playerid,1);
        }
    }
    return 1;
}
I'll go test it now and reply back

Edit: it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)