Posts: 99
Threads: 44
Joined: Mar 2009
Reputation:
0
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 ?
Posts: 852
Threads: 34
Joined: May 2009
Reputation:
0
So you dont even have a level system yet ?
[Doppeyy
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
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);
}
Posts: 99
Threads: 44
Joined: Mar 2009
Reputation:
0
Ofc i have..
Thanks for help
Posts: 99
Threads: 44
Joined: Mar 2009
Reputation:
0
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