Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new string[128];
- GetPlayerPos(playerid,positionx,positiony,positionz);
- JugadorInfo[playerid][jPos_x] = positionx;
- JugadorInfo[playerid][jPos_y] = positiony;
- JugadorInfo[playerid][jPos_z] = positionz;
- JugadorInfo[playerid][jSpawn] = 1;
- if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
- if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
- if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
- if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3);
- if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
- if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
- if(gTeam[killerid] == EHUMANO)
- {
- if(gTeam[playerid] == EHUMANO)
- {
- format(string, sizeof(string),"[FDM ZA-RP]: %s matou o %s, toma atençao. [%d]",NombreJugador(killerid), NombreJugador(playerid), killerid);
- ABroadCast(VERDE,string,1);
- }
- }
- if(gTeam[killerid] == EHUMANO)
- {
- if(gTeam[playerid] == EZOMBIE)
- {
- JugadorInfo[killerid][jPunteria] += 1;
- }
- }
- if(gTeam[playerid] == EZOMBIE)
- {
- if(JugadorInfo[playerid][jZombieC] == 3)
- {
- new Float:POSJ[3];
- GetPlayerPos(playerid,POSJ[0],POSJ[1],POSJ[2]);
- CreateExplosion(POSJ[0],POSJ[1],POSJ[2],6,10.0);
- }
- }
- JugadorInfo[playerid][jCaidas] = 0;
- JugadorInfo[playerid][jTyrant] = 0;
- JugadorInfo[playerid][jArma] = 0;
- JugadorInfo[playerid][jArma2] = 0;
- JugadorInfo[playerid][jArma3] = 0;
- JugadorInfo[playerid][jMunicion] = 0;
- JugadorInfo[playerid][jMunicion2] = 0;
- JugadorInfo[playerid][jMunicion3] = 0;
- JugadorInfo[playerid][jCaidas] = 0;
- if(JugadorInfo[playerid][jInfectado] >= 1)
- {
- format(string, 128, "[FDM ZA-RP]: %s você está infectado, injecte Medicina A ou B antes que a infecção piore! [%d]");
- SendClientMessage(playerid,VERDE, string);
- }
- if(gPlayerUsingLoopingAnim[playerid])
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- TextDrawHideForPlayer(playerid,txtAnimHelper);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement