Certain Score To Enter Tank? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Certain Score To Enter Tank? (
/showthread.php?tid=195052)
Certain Score To Enter Tank? -
<Weponz> - 01.12.2010
How can i make it so u can only drive a tank with 50 score??
Re: Certain Score To Enter Tank? -
Jochemd - 01.12.2010
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.
Re: Certain Score To Enter Tank? -
<Weponz> - 01.12.2010
Thankyou so much works perfectly
Re: Certain Score To Enter Tank? -
Jochemd - 01.12.2010
No problem! I hope you understand the functions so you can do it yourself next time :P
Re: Certain Score To Enter Tank? -
<Weponz> - 01.12.2010
Yah i basically tried that under
OnPlayerEnterVehicle but it failed xD You acually tought me a bit more about
OnPlayerStateChange thanks again! Appreciate It!