13.01.2015, 20:20
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
Gracias por leer, creo que es ese el comando si no es asi avнsenme porfavor
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"));
}