20.02.2009, 17:29
Код:
public OnPlayerUpdate(playerid) { if(IsPlayerConnected(playerid)) { new Float:health; new sendername[MAX_PLAYER_NAME]; new string[128]; GetPlayerHealth(playerid, health); if(health == 5.0){ // PlayerInfo[playerid][pLocal] = 255; SendClientMessage(playerid, COLOR_YELLOW, "Please wait for a Ambulance to arrive"); TogglePlayerControllable(playerid, 0); ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 0, 0, 0, 0, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "** %s is in need of a Medic. (use /accept medic to accept the call)", sendername); SendJobMessage(11, TEAM_AZTECAS_COLOR, string); MedicCall = playerid; } return 1; }