SetPlayerSkillLevel System (0.3)
#1

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 ?
Reply
#2

So you dont even have a level system yet ?

[Doppeyy
Reply
#3

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);
}
Reply
#4

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
Reply
#5

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

Ofc i have..

Thanks for help
Reply
#7

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
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)