// 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"));
}
if(Var_Cargos[playerid]) return SendClientMessage(playerid,color1 , "No puedes usar esto si tienes cargos.");
// 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(Var_Cargos[playerid]) return SendClientMessage(playerid,color1 , "No puedes usar esto si tienes cargos.");
}
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"));
}
GameTextForPlayer(i, "~g~Rescatado~n~~w~En espera de atencion medica...", 5000, 3);
}
if(GetPVarInt(i, "EMSAttempt") == 3){
if(IsPlayerInAnyVehicle(i)){
new ambmodel = GetPlayerVehicleID(i);
if(GetVehicleModel(ambmodel) == 416){
GameTextForPlayer(i, "~g~Rescatado~n~~w~Espera que SAMD te lleve al hospital...", 5000, 3);
}
else{
SendClientMessageEx(i, COLOR_WHITE, "Perdiste el conocimiento y se te translado inmediatamente al hospital.");
KillEMSQueue(i);
SetPVarInt(i, "Hospital", 1);
SpawnPlayer(i);
}
}
else{
SendClientMessageEx(i, COLOR_WHITE, "Perdiste el conocimiento y se te translado inmediatamente al hospital.");
KillEMSQueue(i);
SetPVarInt(i, "Hospital", 1);
SpawnPlayer(i);
}
}
if(health <= 10)
{
SendClientMessageEx(i, COLOR_WHITE, "Perdiste el conocimiento y se te translado inmediatamente al hospital.");
KillEMSQueue(i);
SetPVarInt(i, "Hospital", 1);
SetHP(i, 50);
SpawnPlayer(i);
}
}
}
}
}
G:\ArgonZone\gamemodes\GM.pwn(26942) : error 008: must be a constant expression; assumed zero
G:\ArgonZone\gamemodes\GM.pwn(26950) : warning 217: loose indentation
G:\ArgonZone\gamemodes\GM.pwn(28817) : warning 217: loose indentation
G:\ArgonZone\gamemodes\GM.pwn(28855) : warning 217: loose indentation
G:\ArgonZone\gamemodes\GM.pwn(44233) : warning 217: loose indentation
G:\ArgonZone\gamemodes\GM.pwn(47383) : error 017: undefined symbol "Var_Cargos"
G:\ArgonZone\gamemodes\GM.pwn(47383) : error 017: undefined symbol "playerid"
G:\ArgonZone\gamemodes\GM.pwn(47383) : error 029: invalid expression, assumed zero
G:\ArgonZone\gamemodes\GM.pwn(47383) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Quedo asi el comando amigo
pawn Код:
pawn Код:
|
daaa ayudame porfavor ya llevo rato poniendo cosas e intentando comandos y nada y aparece tu respuesta y tampoco es mmmm.
|