forward korhaz(playerid);
public korhaz(playerid)
{
SendClientMessage(playerid,piros,\"Korházba kerültél a kezelési költség 5000Ft\");
PlayerInfo[playerid][Penz] -=5000;
KillTimer(korhaztimer);
korhaztimer1 = SetTimerEx(\"korhaz1\",30000,1,\"i\",playerid);
}
forward korhaz1(playerid);
public korhaz1(playerid)
{
SetPlayerPos(playerid,-318.5825,1051.9294,20.3403);
SetPlayerInterior(playerid,0);
KillTimer(korhaztimer1);
SendClientMessage(playerid,piros,\"Felépültél\");
}
public OnPlayerDeath(playerid, killerid, reason)
{
JatekosBetoltes(playerid);
korhaztimer = SetTimerEx(\"korhaz\",4700,1,\"i\",playerid);
korhazbavan[playerid]=1;
return 1;
}
if(korhazbavan[playerid]==1)
{
SetPlayerPos(playerid,319.3217,312.2137,999.1484);
SetPlayerInterior(playerid,5);
korhazbavan[playerid]=0;
}
stock JatekosBetoltes(playerid)
{
new Jatekos[64];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(Jatekos,sizeof(Jatekos),\"/Jatekos/%s.txt\",name);
{
PlayerInfo[playerid][Melo] = dini_Int(Jatekos,\"Munka\");
PlayerInfo[playerid][Penz] = dini_Int(Jatekos,\"Penz\");
PlayerInfo[playerid][Pont] = dini_Int(Jatekos,\"Pont\");
PlayerInfo[playerid][Ruha] = dini_Int(Jatekos,\"Ruha\");
PlayerInfo[playerid][Frakcio] = dini_Int(Jatekos,\"Frakcio\");
}
IsLogged[playerid] = 1;
return 1;
}