Detaljan opis problema: Namjesteno je u skripti da se spawna u bolnici dok se ne izlijeci, ali imam problem mene sve igrace spawna negdje u nekom selu daleko od LS ! Pokusao sam nekim prepravkama ali nisam uspio!
Dio skripte:
if(!IsPlayerNPC(playerid))
{
if(MedicBill == 1 && PlayerInfo == 0)
{
SetRealMoney(playerid, ScriptMoney);
PlayerInfo += 1;
SetPlayerHealth(playerid, 50.0);
SafeSetPlayerInterior(playerid, 0);
rand = random(sizeof(gMedicSpawns));
SafeSetPlayerPos(playerid, gMedicSpawns, gMedicSpawns, gMedicSpawns); // Warp the player
SetPlayerFacingAngle(playerid, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Morate se odmoriti ...", 5000, 3);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
if(PlayerInfo == 1)
{
SetTimerEx("ReleaseFromHospital", 20000, 0, "i", playerid);
}
else if(PlayerInfo == 2)
{
SetTimerEx("ReleaseFromHospital", 17500, 0, "i", playerid);
}
else if(PlayerInfo == 3)
{
SetTimerEx("ReleaseFromHospital", 15000, 0, "i", playerid);
}
else if(PlayerInfo >= 1)
{
SetTimerEx("ReleaseFromHospital", 12500, 0, "i", playerid);
}
else if(PlayerInfo >= 4)
{
SetTimerEx("ReleaseFromHospital", 10000, 0, "i", playerid);
}
else
{
SetTimerEx("ReleaseFromHospital", 25000, 0, "i", playerid);
}
PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):/
