+REP for anyone that would help
#3

Quote:
Originally Posted by Kemula
Посмотреть сообщение
Post your problem in the forum, and someone will help you.
Hello, Im opening a RP Server, but when someone dies, Its teleport him to Blueberrys (Coordinate 000) instead to the hospotal (-676.3841, -726.8386, 1072.5399)
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
TextDrawShowForPlayer(playeridTextdraw0);
    
TextDrawShowForPlayer(playeridTextdraw1);
    
SendClientMessage(killeridCOLOR_TWRED"They black out, and fall to the ground...");
    
SendClientMessage(playeridCOLOR_TWRED"You black out, and fall to the ground...");
    
ClearWeapons(playerid);
    
TogglePlayerSpectating(playeridtrue);
    
TogglePlayerControllable(playeridfalse);
    
SetTimerEx("Hospital"250000"i"playerid);
    return 
1;
}
public 
Hospital(playerid)
{
    new 
string[256];
    
TogglePlayerSpectating(playeridfalse);
    
SetSpawnInfo(playerid0PlayerInfo[playerid][pSkin], -318.65221049.390920.3403358.4333000000);
    
SpawnPlayer(playerid);
    
SetPlayerInterior(playerid5);
    
SetPlayerPos(playerid, -676.3841, -726.83861072.5399);
    
SetPlayerFacingAngle(playerid91.4410);
    
TogglePlayerControllable(playeridtrue);
    
SendClientMessage(playeridCOLOR_TWPINK"You wake up in a hospital bed, a bit dizzy, and cannot remember what had happened!");
    
TextDrawHideForPlayer(playeridTextdraw0);
    
TextDrawHideForPlayer(playeridTextdraw1);
    
format(stringsizeof(string), " %s slowly opens his eyes, waking up in a hospital bed"GetPlayerNameEx(playerid));
    
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 
1;

Reply


Messages In This Thread
+REP for anyone that would help - by Vindicated - 30.06.2014, 17:02
Respuesta: +REP for anyone that would help - by Kemula - 01.07.2014, 14:56
Re: Respuesta: +REP for anyone that would help - by Vindicated - 01.07.2014, 22:02
Re: +REP for anyone that would help - by NewerthRoleplay - 01.07.2014, 22:33
Re: +REP for anyone that would help - by FahadKing07 - 01.07.2014, 23:04

Forum Jump:


Users browsing this thread: 1 Guest(s)