SA-MP Forums Archive
SetPlayerSkillLevel System (0.3) - 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 System (0.3) (/showthread.php?tid=120009)



SetPlayerSkillLevel System (0.3) - ArTisT - 10.01.2010

I want to make a SetPlayerSkillLevel system. It should like this: If a player is level 1-4 example it should have 1 uzi if he is over 4 then he should get 2 uzis (hitman level).

Level Info: if(PlayerInfo[playerid][pLevel] < 5) (example)

I dont have any plan/idea how to make it. Any one can help me pls ?



Re: SetPlayerSkillLevel System (0.3) - Doppeyy - 10.01.2010

So you dont even have a level system yet ?

[Doppeyy



Re: SetPlayerSkillLevel System (0.3) - Kyle - 10.01.2010

PUT THIS ONPLAYERCONNECT


if(PlayerInfo[playerid][pLevel] <= 4)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
}

if(PlayerInfo[playerid][pLevel] > 4)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
}


Re: SetPlayerSkillLevel System (0.3) - Doppeyy - 10.01.2010

Quote:
Originally Posted by KyleSmith
PUT THIS ONPLAYERCONNECT


if(PlayerInfo[playerid][pLevel] <= 4)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
}

if(PlayerInfo[playerid][pLevel] > 4)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 999);
}
How can you say that if your not sure he has a level system ??

[Doppeyy


Re: SetPlayerSkillLevel System (0.3) - Kyle - 10.01.2010

If he hasnt he will have to do it his self, But if he has he now has the code for the skill level


Re: SetPlayerSkillLevel System (0.3) - ArTisT - 10.01.2010

Ofc i have..

Thanks for help


Re: SetPlayerSkillLevel System (0.3) - Doppeyy - 10.01.2010

Quote:
Originally Posted by ArTisT
Ofc i have..

Thanks for help
It would be easyier for us to help you if you tell that next time.
Give us more information to work with.

[Doppeyy


Re: SetPlayerSkillLevel System (0.3) - ArTisT - 10.01.2010

okey..

I tested it and if im level 3 or over +4 i still have 1 uzi


EDIT: I put it other public OnPlayerSpawn(playerid) its works now