Vehicle permissions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle permissions (
/showthread.php?tid=445986)
Vehicle permissions -
_Khaled_ - 23.06.2013
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?
Re: Vehicle permissions -
Kindred - 23.06.2013
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
Re: Vehicle permissions -
DobbysGamertag - 23.06.2013
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.