Ayuda
#1

Hola a todos espero esten bien quisiera que me ayudaran a poner esto en mi server y es lo siguiente.
Cuando un sujeto esta con cargos y es abatido el puede pedir /servicios y llamar a los mйdicos quisiera que no pudiera cuando esta muerto con cargos y le salga No puedes hacer esto en este momento o algo asi.

Dejo comando
pawn Код:
// 6 sec tick rate
timer EMSUpdate[6000](){
foreach(Player, i){
    if(GetPVarType(i, "Injured")){
        if(GetPVarInt(i, "EMSAttempt") != 0){
            new Float:health;
            GetPlayerHealth(i,health);
            if(GetPVarInt(i, "EMSAttempt") == -1)
            {
                if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
                {
                    Streamer_UpdateEx(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerPos(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerVirtualWorld(i, GetPVarInt(i,"MedicVW"));
                    SetPlayerInterior(i, GetPVarInt(i,"MedicInt"));
                }
                SetHP(i, health-5);
                ApplyAnimation(i, "CRACK", "crckidle1",4.0,0,1,1,1,-1);
                GameTextForPlayer(i, "~y~Estas herido~n~~w~/aceptar muerte o /servicios", 5000, 3);
            }
            if(GetPVarInt(i, "EMSAttempt") == 1)
            {
                if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
                {
                    Streamer_UpdateEx(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerPos(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerVirtualWorld(i, GetPVarInt(i,"MedicVW"));
                    SetPlayerInterior(i, GetPVarInt(i,"MedicInt"));
                }
                SetHP(i, health-5);
                ApplyAnimation(i, "CRACK", "crckidle1",4.0,0,1,1,1,-1);
                GameTextForPlayer(i, "~r~Herido~n~~w~Espera que SAMD llege...", 5000, 3);
            }
            if(GetPVarInt(i, "EMSAttempt") == 8)
            {
                if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
                {
                    Streamer_UpdateEx(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerPos(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerVirtualWorld(i, GetPVarInt(i,"MedicVW"));
                    SetPlayerInterior(i, GetPVarInt(i,"MedicInt"));
                }
                SetHP(i, health-5);
                ApplyAnimation(i, "CRACK", "crckidle1",4.0,0,1,1,1,-1);
                GameTextForPlayer(i, "~r~Herido~n~~w~Espera que SAMD llege...", 5000, 3);
            }
            if(GetPVarInt(i, "EMSAttempt") == 2)
            {
                if(!IsPlayerInRangeOfPoint(i, 3.0, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")))
                {
                    Streamer_UpdateEx(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerPos(i, GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ"));
                    SetPlayerVirtualWorld(i, GetPVarInt(i,"MedicVW"));
                    SetPlayerInterior(i, GetPVarInt(i,"MedicInt"));
                }
Gracias por leer, creo que es ese el comando si no es asi avнsenme porfavor
Reply


Messages In This Thread
Ayuda - by TyreseKowalski - 13.01.2015, 20:20
Respuesta: Ayuda - by jotajeda - 13.01.2015, 20:42
Re: Ayuda - by TyreseKowalski - 14.01.2015, 17:01
Respuesta: Re: Ayuda - by jotajeda - 14.01.2015, 17:07
Re: Ayuda - by TyreseKowalski - 14.01.2015, 17:10
Respuesta: Re: Ayuda - by jotajeda - 14.01.2015, 17:22
Re: Ayuda - by TyreseKowalski - 14.01.2015, 17:33
Respuesta: Ayuda - by Goncho28 - 14.01.2015, 21:50
Re: Ayuda - by TyreseKowalski - 14.01.2015, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)