Rape Diseases Array help
#4

Add this to your
pawn Код:
enum pInfo
{
pDiseases
};
pawn Код:
public OnPlayerConnect
PlayerInfo[playerid][pDiseases]
Don't forget to add new line in your users file called Diseases.
pawn Код:
public OnPlayerLogin
PlayerInfo[playerid][pDiseases] = dini_Int(string2,"Diseases"); // Just Like this.
And to make difference between Diseases use this
pawn Код:
PlayerInfo[playerid][pDiseases] = The Diseases ID.
Just like this.
pawn Код:
else if(rand == 1)
                {
                    SendClientMessage(playerid, COLOR_GREY, "You got Syphilis now! Go and see a doctor.");
SetPlayerHealth(playerid, GetPlayerHealth(playerid)-20);
PlayerInfo[playerid][pDiseases] = 1;
                    return 1;
                }
Make sure to load the diseases, And for the Hospital checkpoints, Just use SetPlayerCheckPoint
Reply


Messages In This Thread
Rape Diseases Array help - by NoahF - 06.07.2014, 16:21
Re : Rape Diseases Array help - by Clad - 06.07.2014, 16:48
Re: Rape Diseases Array help - by NoahF - 06.07.2014, 16:59
Re : Rape Diseases Array help - by Clad - 06.07.2014, 17:07
Re: Rape Diseases Array help - by NoahF - 06.07.2014, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)