05.02.2011, 21:27
Boas =D eu gostava tipo no meu GM RP quando se morre ele vai parar ao hospital, mas eu keria que ele ficasse morto no chao durante uns segundos. alguem me ajuda ? agradeзo
Public OnPlayerDeath
SetPlayerPos e SetPlayerInterior
Animaзao + SetTimer
#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define CG 0xB8860BAA
new Count[MAX_PLAYERS];
new CountdownTimer[MAX_PLAYERS];
forward HospitalCountdown(playerid);
public OnFilterScriptInit()
{
print("-----------Hospital By Splitx e Shark-------------");
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
TogglePlayerControllable(playerid, 0);
SetPlayerPos(playerid,1183.4017,-1297.4088,14.2143);
SetPlayerCameraPos(playerid,1197.5721,-1325.6716,26.9214);
SetPlayerCameraLookAt(playerid, 1177.6808,-1324.3663,14.0827);
CountdownTimer[playerid] = SetTimerEx("HospitalCountdown", 1000, 1, "i", playerid);
Count[playerid] = 5;
return 1;
}
public HospitalCountdown(playerid)
{
new string[64];
format(string, sizeof(string), "~g~Voce sera ~n~~y~socorrido em ~n~~b~%d Segundos...", Count[playerid]);
GameTextForPlayer(playerid, string, 1500, 3);
if(Count[playerid] == 0)
{
KillTimer(CountdownTimer[playerid]);
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 100.00);
GivePlayerMoney(playerid, -1000);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, CG,"INFO: Os mйdicos te salvaram por pouco e pegaram 1000$");
}
Count[playerid]--;
}
#endif
C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\hospital.pwn(82) : error 055: start of function body without function header C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\hospital.pwn(84) : error 010: invalid function or declaration C:\Users\Ricardo\Desktop\Server Sa-mp 0.3c\filterscripts\hospital.pwn(105) : error 026: no matching "#if..." Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |