Guest User

Untitled

a guest
Mar 8th, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. if(strcmp(cmd, "/wiederbeleben", true) == 0 || strcmp(cmd, "/wb", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
  6. {
  7. for(new i = 0; i < MAX_PLAYERS; i++)
  8. {
  9. if(PlayerInfo[i][pTot] == 1 && IsPlayerInRangeOfPoint(playerid,5.0,PlayerInfo[i][pTx],PlayerInfo[i][pTy],PlayerInfo[i][pTz]))
  10. {
  11. new pname[256];
  12. GetPlayerName(i, pname, 256);
  13. format(string, 256, "Du hast deinen Patienten %s behandelt und bekommst 200$ für deine Arbeit.",pname);
  14. SendClientMessage(playerid, Hellgrun, string);
  15. GetPlayerName(playerid, pname, 256);
  16. format(string, 256, "Der Sanitäter %s hat deine Wunden behandelt.",pname);
  17. GivePlayerMoney(i,-200);
  18. ClearAnimations(i);
  19. SendClientMessage(i, Hellgrun, string);
  20. SendClientMessage(i, Hellgrun, "Die Behandlung hat dich 500$ gekostet.");
  21. GivePlayerMoney(playerid,200);
  22. DisablePlayerCheckpoint(playerid);
  23. PlayerInfo[i][pTot] = 0;
  24. UnFreezePlayer(i);
  25. pIstTot[i] = 0;
  26. SetPlayerPos(i,PlayerInfo[i][pTx],PlayerInfo[i][pTy],PlayerInfo[i][pTz]);
  27. SetCameraBehindPlayer(i);
  28. DestroyPickup(TotenKopf[i]);
  29. Delete3DTextLabel(Tote[i]);
  30. TogglePlayerControllable(i,1);
  31. SetPlayerSkin(i,PlayerInfo[i][pSkin]);
  32. PlayerInfo[i][pTx] = 0.0;
  33. PlayerInfo[i][pTy] = 0.0;
  34. PlayerInfo[i][pTz] = 0.0;
  35. new Float:tempheal;
  36. GetPlayerHealth(i,tempheal);
  37. SetPlayerHealth(i,100.0);
  38. {
  39. if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
  40. {
  41. GetPlayerName(i,pname,MAX_PLAYER_NAME);
  42. format(ALLSTRING,sizeof(ALLSTRING),"Sanitäter %s hat sich um %s gekümmert und ihn behandelt.",PlayerName[playerid],pname);
  43. SendClientMessage(i,Hellblau,ALLSTRING);
  44. //SetPlayerCheckpoint(i,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz],5.0);
  45. }
  46. }
  47. }
  48. }
  49. }
  50. else
  51. {
  52. SendClientMessage(playerid, COLOR_GRAD1, " Du bist kein Arzt!");
  53. }
  54. }
  55. return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment