Injured bug -
sojoxd - 31.01.2015
So I have an roleplay server and when someone is dead it need to make him injured not sending him to hospital but that's not working I have the /revive command. Tell me what can I do to make him to be on the ground saying this
Код:
forward SendEMSQueue(playerid,type);
public SendEMSQueue(playerid,type)
{
switch (type)
{
case 1:
{
Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
SetPVarInt(playerid, "EMSAttempt", -1);
if(GetPlayerInterior(playerid) > 0) Player_StreamPrep(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"), 4000);
GameTextForPlayer(playerid, "~r~Injured~n~~w~ /service ems", 5000, 3);
ClearAnimations(playerid);
ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid,0);
if(GetPVarInt(playerid, "usingfirstaid") == 1)
{
firstaidexpire(playerid);
}
SetPVarInt(playerid,"MedicCall",1);
}
case 2:
{
SetPVarInt(playerid,"EMSAttempt", 2);
ClearAnimations(playerid);
ApplyAnimation(playerid, "SWAT", "gnstwall_injurd", 4.0, 0, 1, 1, 1, 0, 1);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid,0);
}
}
return 1;
}
Код:
CMD:revive(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new string[128], giveplayerid;
if(sscanf(params, "i", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /revive [playerid]");
if(IsPlayerConnected(giveplayerid))
{
if(GetPVarInt(giveplayerid, "Injured") == 1)
{
format(string, sizeof(string), " You have revived %s.", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
SendClientMessageEx(giveplayerid, COLOR_WHITE, "You have been revived by an Admin.");
KillEMSQueue(giveplayerid);
ClearAnimations(giveplayerid);
SetPlayerHealth(giveplayerid, 100);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "That player is not injured!");
}
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}
Re: Injured bug -
sojoxd - 31.01.2015
Also I have a Family System and I do /adjust name " Example". I restart the server and family name gone.
Someone can give me some support please?
Re: Injured bug -
sojoxd - 31.01.2015
Bump please help me
Re: Injured bug -
sojoxd - 01.02.2015
Help me man..
Re: Injured bug -
dirigent00 - 01.02.2015
Okay, I dunno what is problem in first thing, bcuz I didn't understand u. Second, your system is probably not saving name of organization, I mean on string, sto give us a codes for that, and explain what is problem in first thing.
Re: Injured bug -
sojoxd - 02.02.2015
Ok. This server has a injured system like when you have 0 hp it makes you in /injured with 100 hp and it's going down tilll EMS arrive, but the problem is when I kill someone it didn't work I mean it's senting him to hospital without any chance to can do /revive on him.
What I can show you about /families ?
Re: Injured bug -
Sew_Sumi - 02.02.2015
Looks a bit like NGRPs script there........
Re: Injured bug -
sojoxd - 02.02.2015
Nah it's isn't.
Re: Injured bug -
Sew_Sumi - 02.02.2015
It's an NGRP edit.
Sorry to burst your bubble, but it's a stolen script, therefore, not a good thing to be in possession of or working on...
Re: Injured bug -
sojoxd - 02.02.2015
IT'S NOT. It's a filterscript of American Roleplay