SetPlayerSkillLevel - 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: SetPlayerSkillLevel (
/showthread.php?tid=184912)
SetPlayerSkillLevel -
Dj_maryo1993 - 22.10.2010
I got the below code witch is called every time an player connects .
pawn Код:
public ResetPVar(playerid)
{
SetPlayerSkillLevel(playerid,0,1);
SetPlayerSkillLevel(playerid,6,1);
return 1;
}
But only works for id 0.
Re: SetPlayerSkillLevel -
MadeMan - 22.10.2010
How do you call it?
Re: SetPlayerSkillLevel -
Dj_maryo1993 - 22.10.2010
under OnPlayerConnect
Re: SetPlayerSkillLevel -
Mauzen - 22.10.2010
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
What do you mean by it "works"
1/0 means no skill, 999 is the max
skill id 0 is the pistol, id 6 is micro uzi. Make sure you set all correctly to what you want.
Re: SetPlayerSkillLevel -
MadeMan - 22.10.2010
Quote:
Originally Posted by Dj_maryo1993
under OnPlayerConnect
|
Show it please.
Re: SetPlayerSkillLevel -
Dj_maryo1993 - 22.10.2010
pawn Код:
public OnPlayerConnect(playerid)
{
ResetPVar(playerid); // the first line under onplayerconnect
... some stuff cheching account /showing menu for login / register.
return 1;
}
Re: SetPlayerSkillLevel -
SampStunta - 22.10.2010
They use this in the grandlarc gamemode. You'll probably be able to get some help from that gamemode...