Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 KB | None | 0 0
  1. Function OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. SetPlayerCameraPos(playerid,1997.0121,-1450.9044,44.1359);
  4. SetPlayerCameraLookAt(playerid,1999.7771,-1447.8638,44.1359);
  5. SetPlayerColor(playerid,TEAM_HIT_COLOR);
  6. ResetPlayerWeapons(playerid);
  7. SetPlayerPos(playerid,2069.4993,-1415.4385,23.4259 );
  8. SetPlayerInterior(playerid, 0);
  9. GW_OnPlayerDeath(playerid, killerid, reason);
  10. M_OnPlayerDeath(playerid, killerid, reason);
  11. new Float:x,Float:y,Float:z;
  12. GetPlayerPos(playerid,x,y,z);
  13. if(GetPlayerWeapon(playerid) == 24) { //Deagle
  14. DeagleDrop = CreatePickup(348,4,x,y,z);
  15. }
  16.  
  17.  
  18. Function OnPlayerSpawn(playerid)
  19. {
  20. //NPC BOT
  21. if(IsPlayerNPC(playerid)) return 1;
  22.  
  23. Spawned[playerid] = 1;
  24. if (PlayerInfo[playerid][pAdmin] > 0)//:D
  25. {
  26. TextDrawShowForPlayer(playerid,OTickets[playerid]);
  27. }
  28. TextDrawHideForPlayer(playerid,WelcomeOne);
  29. TextDrawShowForPlayer(playerid, ForumAnzeige1);
  30. TextDrawShowForPlayer(playerid, ForumAnzeige2);
  31. TextDrawShowForPlayer(playerid, ForumAnzeige3);
  32. TextDrawShowForPlayer(playerid,Uhrzeit);
  33. TextDrawShowForPlayer(playerid,Datum);
  34. GW_OnPlayerSpawn(playerid);
  35. SetTimer("Krankenhaus", 10000, 0);
  36. M_OnPlayerSpawn(playerid);
  37. TextDrawShowForPlayer(playerid,Copyright);
  38. if(PlayerInfo[playerid][pTot] == 1)
  39. {
  40. SendClientMessage(playerid, COLOR_WHITE, " ");
  41. SendClientMessage(playerid, COLOR_WHITE, " ");
  42. SendClientMessage(playerid, COLOR_WHITE, " ");
  43. SendClientMessage(playerid, COLOR_WHITE, " ");
  44. SendClientMessage(playerid, COLOR_WHITE, " ");
  45. SendClientMessage(playerid, COLOR_WHITE, " ");
  46. SendClientMessage(playerid, COLOR_GREEN, "Los Santos Krankenhaus ");
  47. SendClientMessage(playerid, COLOR_WHITE, "Du bist nun im Krankenhaus");
  48. SendClientMessage(playerid, COLOR_WHITE, "Die Ärzte werden dir helfen");
  49. SendClientMessage(playerid, COLOR_WHITE, "Du wirst in 60 Sekunden Wiederbelebt");
  50. SetPlayerSpawn(playerid);
  51. if(IsPlayerInFrac(playerid, 1))
  52. {
  53. SetPlayerColor(playerid,NAMECOLOR_LSCOP);
  54. }
  55. else if(IsPlayerInFrac(playerid, 4))
  56. {
  57. SetPlayerColor(playerid, NAMECOLOR_MEDIC);
  58. }
  59. else
  60. {
  61. SetPlayerColor(playerid,TEAM_HIT_COLOR);
  62. }
  63. ResetPlayerWeapons(playerid);
  64. return 1;
  65. }
  66.  
  67.  
  68. forward GW_OnPlayerSpawn(playerid);
  69. public GW_OnPlayerSpawn(playerid){
  70. if(!GetPVarInt(playerid,"Spawned")){
  71. SetPVarInt(playerid,"Spawned",1);
  72. for(new fs;fs<sizeof(FightSystem);fs++){
  73. if(FightSystem[fs][fsAttackFaction] != -255 && FightSystem[fs][fsFightTime]){
  74. GangZoneFlashForPlayer(playerid,FightSystem[fs][fsZoneID],GetZoneColorOfFaction(FightSystem[fs][fsAttackFaction]));
  75. if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]){
  76. TextDrawShowForPlayer(playerid,Fight);
  77. TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinFaction]);
  78. TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseFaction]);
  79. TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinKills]);
  80. TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseKills]);
  81. }
  82. }
  83. }
  84. }return 1;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement