Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- M_OnPlayerDeath(playerid,killerid,reason);
- new name[MAX_PLAYER_NAME];
- new string[256];
- new playercash;
- new victimteam;
- new Float:px,Float:py,Float:pz;
- new killerteam;
- InCargo[playerid] = 0; InLevi[playerid] = 0;
- if((AtRegestration[playerid] == 0 && PlayerPaintballing[playerid] == 0) && FirstSpawn[playerid] == 0)
- {
- PlayerInfo[playerid][pTot] = 1;
- new Float:pX,Float:pY,Float:pZ;
- GetPlayerPos(playerid, pX, pY, pZ);
- TotenKopf[playerid][0] = CreatePickup(1254,1, pX, pY, pZ);
- PlayerInfo[playerid][pTx] = pX;
- PlayerInfo[playerid][pTy] = pY;
- PlayerInfo[playerid][pTz] = pZ;
- GetPlayerName(playerid, name, sizeof(name));
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wurdest schwer verletzt ins Krankenhaus gebracht!");
- // SendClientMessage(playerid,COLOR_LIGHTBLUE, "Möchtest du einen Arzt?(/needmedic)");
- if(GetPlayerInterior(playerid) == 0)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
- {
- // SendClientMessage(i,COLOR_LIGHTBLUE,"[Funk:]Eine Person wurde als schwer verletzt gemeldet!");
- // SendClientMessage(i,COLOR_LIGHTBLUE,"Achtung eine Person wurde als schwerverletzt gemeldet!");
- // SendClientMessage(i,COLOR_LIGHTBLUE,"Die Position wurde auf dem HUD markiert!(/rmarker zum löschen)");
- // SetPlayerCheckpoint(i,PlayerInfo[playerid][pTx],PlayerInfo[playerid][pTy],PlayerInfo[playerid][pTz],5.0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement