Advertisement
Calaze_Carrey

Wenn der Pickup erstellt wird

May 4th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. M_OnPlayerDeath(playerid,killerid,reason);
  4. new name[MAX_PLAYER_NAME];
  5. new string[256];
  6. new playercash;
  7. new victimteam;
  8. new Float:px,Float:py,Float:pz;
  9. new killerteam;
  10. InCargo[playerid] = 0; InLevi[playerid] = 0;
  11. if((AtRegestration[playerid] == 0 && PlayerPaintballing[playerid] == 0) && FirstSpawn[playerid] == 0)
  12. {
  13. PlayerInfo[playerid][pTot] = 1;
  14. new Float:pX,Float:pY,Float:pZ;
  15. GetPlayerPos(playerid, pX, pY, pZ);
  16. TotenKopf[playerid][0] = CreatePickup(1254,1, pX, pY, pZ);
  17. PlayerInfo[playerid][pTx] = pX;
  18. PlayerInfo[playerid][pTy] = pY;
  19. PlayerInfo[playerid][pTz] = pZ;
  20. GetPlayerName(playerid, name, sizeof(name));
  21. SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wurdest schwer verletzt ins Krankenhaus gebracht!");
  22. // SendClientMessage(playerid,COLOR_LIGHTBLUE, "Möchtest du einen Arzt?(/needmedic)");
  23. if(GetPlayerInterior(playerid) == 0)
  24. {
  25. for(new i=0; i<MAX_PLAYERS; i++)
  26. {
  27. if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
  28. {
  29. // SendClientMessage(i,COLOR_LIGHTBLUE,"[Funk:]Eine Person wurde als schwer verletzt gemeldet!");
  30. // SendClientMessage(i,COLOR_LIGHTBLUE,"Achtung eine Person wurde als schwerverletzt gemeldet!");
  31. // SendClientMessage(i,COLOR_LIGHTBLUE,"Die Position wurde auf dem HUD markiert!(/rmarker zum löschen)");
  32. // SetPlayerCheckpoint(i,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz],5.0);
  33. }
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement