I need help!!
#5

Код:
public RespawnHospital(playerid)
{
    SendClientMessage(playerid, COLOR_RED, "Youhave been sent to the hospital imediatly!");
    SendClientMessage(playerid, COLOR_RED, "any weapon(s) was with is taken due to the surgery!");
    SendClientMessage(playerid, 0xFF00CC, "You need now to rest.");
    SetPlayerPos(playerid, 1221.7010,-1328.6449,13.4821);
    SetPlayerCameraPos(playerid, 1204.3781,-1313.3323,16.3984);
    SetPlayerCameraLookAt(playerid, 1174.7167,-1323.4485,14.5938);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("DEAD1", 50000, 0,"d",playerid);
    SendClientMessage(playerid, 0xFF00CC, "You have paid 1000 for your surgery, have a nice day");
    GivePlayerMoney(playerid, -1000);
    if(PlayerInfo[playerid][Fleader] == 1)
    {
        SendClientMessage(playerid, 0xFF00CC, "You have paid 800 for your surgery.");
	GivePlayerMoney(playerid, -800);
    }
    if(PlayerInfo[playerid][Credit] >= 0)
    {
	SendClientMessage(playerid, 0xFF00CC, "You have paid 500 for your surgery.");
	GivePlayerMoney(playerid, -500);
	return 1;
    }
}
This should work..
Reply


Messages In This Thread
I need help!! - by Youice - 17.02.2012, 16:29
Re: I need help!! - by Twisted_Insane - 17.02.2012, 16:51
Re: I need help!! - by C0d3.03 - 17.02.2012, 16:59
Re: I need help!! - by Youice - 17.02.2012, 17:00
Re: I need help!! - by johnnyman1 - 17.02.2012, 18:45
Re: I need help!! - by Youice - 17.02.2012, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)