09.12.2010, 12:14
im using SW-RP beta
Код:
public OnPlayerSpawn(playerid) { //TextDrawShowForPlayer(playerid, MoneySign); TextDrawHideForPlayer(playerid, Forums); TextDrawShowForPlayer(playerid, swrptext); new string[256]; if(JustDied[playerid] == 1) { for (new a = 0; a < 10; a++) { SendClientMessage(playerid, COLOR_WHITE, " "); } ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,1,0); SendClientMessage(playerid, COLOR_BLUE, "----------------------------------------------------------"); SendClientMessage(playerid, COLOR_BLUE, "You're about to die, if you die you will go to afterdeath."); SendClientMessage(playerid, COLOR_BLUE, "Maybe someone will find you and call the EMTS, who knows..."); SendClientMessage(playerid, COLOR_BLUE, "If you just want to die and go straight to afterdeath, type /acceptdeath"); SendClientMessage(playerid, COLOR_BLUE, "----------------------------------------------------------"); TogglePlayerControllable(playerid, 0); ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,1,0); SetPlayerPos(playerid, deadx[playerid], deady[playerid], deadz[playerid]); SetPlayerInterior(playerid, DeadInt[playerid]); SetPlayerVirtualWorld(playerid, DeadWorld[playerid]); ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0); SetPlayerCameraPos(playerid, deadx[playerid], deady[playerid], deadz[playerid]+5); SetPlayerCameraLookAt(playerid, deadx[playerid], deady[playerid], deadz[playerid]); SetTimerEx("FallPlayer", 5000, 0, "d", playerid); return 1; } format(string, sizeof(string), "MOTD - %s", MOTD); SendClientMessage(playerid, COLOR_SPRINGGREEN, string); if(PlayerInfo[playerid][pDisease] == LungCancer) { SendClientMessage(playerid, COLOR_BLUE, "You're having trouble breathing... (( Lung Cancer ))"); SetTimerEx("Cough", 60000, 1, "d", playerid); } return 1; }