Senior Scripters - 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: Senior Scripters (
/showthread.php?tid=506237)
Senior Scripters -
MrCallum - 12.04.2014
Is there away of making jobs For only like certain levels?
As like taxi job - level 3? or so?
Re: Senior Scripters -
MrCallum - 12.04.2014
Thank you i will find a way of making it happen!!
Thank you ******
Re: Senior Scripters -
Twizted - 12.04.2014
This is a basic structure that should help you making jobs for a certain level. Let's say that you use
gPLevel[playerid] to get the player's level.
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0); //a checkpoint is created when the player spawns.
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(gPLevel[playerid] < 3){
//What happens if the player's level not 3.
}
else if (gPLevel[playerid] >= 3){
//What happens if the player's level is 3 or higher.
}
DisablePlayerCheckpoint(playerid);
return 1;
}
Re: Senior Scripters -
MrCallum - 12.04.2014
Okay thank you i will try that if it does not work i will find a way i always do haha