14.04.2014, 03:28
How do i make this when im on duty admin and somebody kills me then i wont get killed. I will get revived
and it will not shown that /accept death , /service ems
and it will not shown that /accept death , /service ems
Код:
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) { TogglePlayerControllable(playerid, 0); SetPVarInt(playerid, "LoadingObjects", 1); SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid); } GameTextForPlayer(playerid, "~r~Injured~n~~w~/accept death or /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; }