[Ajuda] Bug no hospital
#7

Quote:
Originally Posted by TugaBR
View Post
Й uma treta mas, cria uma variбvel pro player que for hospitalizado pra carregar no login. Tipo [pHospitalizado]. Depois tu pхe na Public OnPlayerSpawn: if(Player[playerid][pHospitalizado] != 0) (0 - Nгo hospitalizado \ 1 = Hospitalizado).

PHP Code:
        if(Player[playerid][pHospitalizado] != 0)
        {
            
SendClientMessage(playerid0xA9A9A9AAVocк estб hospitalizado!);
            
SetPlayerPos(playerid,0.0,0.0,3.0); //Local do hospital
        

Vocк pode setar o interior tbm.
Isso pode ser feito com booleanas, й mais apropriado.
Exemplo:

PHP Code:
new bool:EstaNoHospital[MAX_PLAYERS];
if(
EstaNoHospital[playerid] == true//Significa que ele estб hospitalizado
if(EstaNoHospital[playerid] == false//Significa que ele nгo esta hospitalizado 
Para mais detalhes veja esse tutorial: https://sampforum.blast.hk/showthread.php?tid=292185
Reply


Messages In This Thread
Bug no hospital - by #Coringa - 07.12.2012, 11:48
Re: Bug no hospital - by TugaBR - 07.12.2012, 12:19
Re: Bug no hospital - by VenoN - 07.12.2012, 13:22
Respuesta: Bug no hospital - by gabrielloko157 - 07.12.2012, 13:41
Re: Bug no hospital - by #Coringa - 07.12.2012, 14:18
Re: Bug no hospital - by TugaBR - 07.12.2012, 14:31
Re: Bug no hospital - by EditPawn - 07.12.2012, 14:36
Re: Bug no hospital - by TugaBR - 07.12.2012, 14:38
Re: Bug no hospital - by #Coringa - 07.12.2012, 14:59
Re: Bug no hospital - by Maklister - 07.12.2012, 15:31
Re: Bug no hospital - by lukas_loky - 07.12.2012, 15:43

Forum Jump:


Users browsing this thread: 3 Guest(s)