[AJUDA] Comando /curar
#6

Quote:
Originally Posted by Chis
Посмотреть сообщение
o seu return 1; ai ta errado

Eu estando ou nгo dentro da ambulancia o comando funciona, estando em outro veiculo tambйm funciona, sу quero q funcione dentro da ambulancia :S
Qual return 1; ?


Ve ai se da certo ^^

PHP код:
CMD:curar(playeridparams[]) 

    new 
newcar GetPlayerVehicleID(playerid); 
    if(
CarroMedico(newcar))
    { 
        if(
sscanf(params"dd"id)) return SendClientMessage(playeridCOR_CINZA,"USE /curar [id]"); 
        
GetPlayerName(idnomeMAX_PLAYER_NAME); 
        
SetPlayerHealth(id,100); 
        
SetPlayerArmour(id,20); 
        return 
1
    }
    else
    {
        
SendClientMessage(playerid, -1"Vocк nгo esta Dentro de uma Ambulвncia!"); // Edite como quiser :)
        
return 1;
    }

DICA: Se tiver alguma variavel da organizaзгo dos mйdicos, seria bom definir esse comando sу para eles porque qualquer um podera usar esse comando. Me corrijam se eu estiver errado u.u
Reply


Messages In This Thread
[AJUDA] Comando /curar - by Chis - 29.03.2012, 01:28
Re: [AJUDA] Comando /curar - by Dolby - 29.03.2012, 01:31
Re: [AJUDA] Comando /curar - by jefe10 - 29.03.2012, 01:32
Re: [AJUDA] Comando /curar - by kratty - 29.03.2012, 01:38
Respuesta: [AJUDA] Comando /curar - by Chis - 29.03.2012, 01:48
Re: [AJUDA] Comando /curar - by kratty - 29.03.2012, 02:01
Respuesta: [AJUDA] Comando /curar - by Chis - 29.03.2012, 02:05
Re: [AJUDA] Comando /curar - by rjjj - 29.03.2012, 02:09
Re: Respuesta: [AJUDA] Comando /curar - by kratty - 29.03.2012, 02:10
Re: [AJUDA] Comando /curar - by Jason` - 29.03.2012, 20:28

Forum Jump:


Users browsing this thread: 1 Guest(s)