SetPlayerSkillLevel
#1

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

How do you call it?
Reply
#3

under OnPlayerConnect
Reply
#4

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

Quote:
Originally Posted by Dj_maryo1993
Посмотреть сообщение
under OnPlayerConnect
Show it please.
Reply
#6

pawn Код:
public OnPlayerConnect(playerid)
{
    ResetPVar(playerid); // the first line under onplayerconnect
    ... some stuff cheching account /showing menu for login / register.
   return 1;
}
Reply
#7

They use this in the grandlarc gamemode. You'll probably be able to get some help from that gamemode...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)