24.05.2011, 23:05
Код:
//------------------------------------------EMT AFTER DEATH COMMAND------------------------------------------// if(strcmp(cmd, "/EMT", true) == 0) { if (PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4) { SetPlayerHealth(playerid, 100.0); KillTimer(deadt[playerid]); PlayerInfo[playerid][pDeaths] = 0; SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]); SetPlayerInterior(playerid, DeadInt[playerid]); SetPlayerVirtualWorld(playerid, DeadWorld[playerid]); SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 1); ClearChatbox(playerid, 10); SendClientMessage(playerid, COLOR_GRAD1, " You admin healed yourself"); } return 1; } //-----------------------------------------------------------------------------------------------------------//