06.07.2014, 17:07
Add this to your
Don't forget to add new line in your users file called Diseases.
And to make difference between Diseases use this
Just like this.
Make sure to load the diseases, And for the Hospital checkpoints, Just use SetPlayerCheckPoint
pawn Код:
enum pInfo
{
pDiseases
};
pawn Код:
public OnPlayerConnect
PlayerInfo[playerid][pDiseases]
pawn Код:
public OnPlayerLogin
PlayerInfo[playerid][pDiseases] = dini_Int(string2,"Diseases"); // Just Like this.
pawn Код:
PlayerInfo[playerid][pDiseases] = The Diseases ID.
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;
}