16.07.2011, 16:56
Pessoal gostaria de um sistema que quando a pessoa morre ela aparesзa dentro de uma anbulancia ou quarto de hospital ,,,, e so fosse liberda depois de algum tempo .. ajudem aqui poor favor vlw
public OnPlayerDeath(playerid,killerid,reason)
{
SetPVarInt(playerid,"Morreu",1);
return 0x01;
}
public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid,"Morreu") == 1)
{
SetPlayerPos(playerid,PosiзгoX,PosiзгoY,PosiзгoZ);
SetPlayerInterior(playerid,Interior);
SetTimerEx("ReceberAlta",60000,false,"i",playerid);
}
return 0x01;
}
forward ReceberAlta(playerid);
public ReceberAlta(playerid) return SetPVarInt(playerid,"Morreu",0), SpawnPlayer(playerid);
C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(5200) : error 035: argument type mismatch (argument 2) C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(5208) : error 054: unmatched closing brace ("}") C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(15029) : error 021: symbol already defined: "OnPlayerDeath" C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(15407) : error 021: symbol already defined: "OnPlayerSpawn" C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(46689) : error 004: function "Ambu" is not implemented C:\Users\Caio\Desktop\gm luiz need\gamemodes\BSL.pwn(56170) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.