Setplayerinfo
#1

Код:
PlayerInfo[playerid][dRank] = 3;
how do i do this in player connect?
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayerInfo[playerid][dRank] = 3;
    return 1;
}
Reply
#3

Keep in mind setting that on when the player connects will set it as default for everybody as they connect. I'm not sure exactly what you're trying to do, but just remember, if you're trying to load stats, do so by reading a file, and such, first.
Reply
#4

You should put the line under where your file gets parsed for being used with your enumerated variables. However, you could just put it on the first line under OnPlayerDisconnect as if you're doing it under OnPlayerConnect, the parsing will overwrite it anyway, so that won't work.
Reply
#5

So i'll just put this PlayerInfo[playerid][dRank] = 3; on playerconnect first line?
I am trying to give everyone donor rank level 3.
Reply
#6

Yes.
Reply
#7

Its not working :/
Reply
#8

Then put under Onplayerspawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)