After released from hospital go to home or fac? please help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: After released from hospital go to home or fac? please help (
/showthread.php?tid=256513)
After released from hospital go to home or fac? please help -
hopehelp - 21.05.2011
I using a Raven game script and fixed the bug hospital, now when player died will spawn at the hospital.
and after released from hospital player will spawn at outside hospital
this is scripting
Код:
public ReleaseFromHospital(playerid)
{
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "·Т§вГ§ѕВТєТЕН№Ш*ТµгЛй¤ШіЎЕСєєйТ№дґйбЕйЗ.");
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
SetPlayerHealth(playerid, 50.0);
new decidehosp = random(2);
switch(decidehosp)
{
case 0:
{
SafeSetPlayerPos(playerid, 1177.4866,-1323.9749,14.0731);
SetPlayerFacingAngle(playerid, 270.0);
SafeSetPlayerInterior(playerid, 0);
SafeResetPlayerWeapons(playerid);
}
case 1:
{
SafeSetPlayerPos(playerid, 2025.1497,-1402.8643,17.2089);
SetPlayerFacingAngle(playerid, 270.0);
SafeSetPlayerInterior(playerid, 0);
SafeResetPlayerWeapons(playerid);
}
}
return 1;
}
My problem is, after released I would like player to spawn at their home or factories. can anyone help?
thanks very much
Re: After released from hospital go to home or fac? please help -
hopehelp - 21.05.2011
pls help T T
Re: After released from hospital go to home or fac? please help -
hopehelp - 21.05.2011
have any info? i will try by my self
Re : After released from hospital go to home or fac? please help -
Naruto_Emilio - 21.05.2011
You must wait 48 hours to bump this topic again....
Re: After released from hospital go to home or fac? please help -
PhantomDot1 - 21.05.2011
put at the settings window, where they can select their own settings, where they want to respawn,
ps. im kinda newb, and i think this is a solution, how to do it further... i dont know.