Help|How to fix the hospital spawn (CRP)
#1

i have the CRP Mode.. (*i have the samp03svrer RC10-1 win32)
And a problem every time you die it teleport you to the beginning
And skin changes, and can not write anything
How do I arrange that I going to the hospital which will take silver die
Thank assistants

this is the code:

Quote:

public ReleaseFromHospital(playerid)
{
SendClientMessage(playerid, COLOR_ADMINCMD, "You have been released from the Hospital.");
SendClientMessage(playerid, COLOR_WHITE, "Unfortunately, you have sustained some memory loss from the operation.");
SendClientMessage(playerid, COLOR_WHITE, "You have been charged $100 for the operation that was executed.");
TogglePlayerControllable(playerid, true);
SetCameraBehindPlayer(playerid);
GivePlayerCash(playerid, -100);
SetPlayerSkin(playerid, pStats[playerid][pSkin]);
SetPlayerHealth(playerid, 80);
pStats[playerid][pHospitalized] = 0;
StopMusic(playerid);
pStats[playerid][pHospitalLog] = 0;
new decidehosp = random(2);
switch(decidehosp)
{
case 0:
{
SetPlayerPos(playerid, 1177.4866,-1323.9749,14.0731);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid, 0);
ResetPlayerWeaponsEx(playerid);

}
case 1:
{
SetPlayerPos(playerid, 2025.1497,-1402.8643,17.2089);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid, 0);
ResetPlayerWeaponsEx(playerid);
}
}

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)