Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new killedplayer[MAX_PLAYER_NAME], string[256];
- if(killerid == INVALID_PLAYER_ID)
- {
- SendDeathMessage(INVALID_PLAYER_ID, playerid, reason);
- } else {
- SendDeathMessage(killerid, playerid, reason);
- SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
- if(Cartao[playerid] > 0 && !Cartao[killerid])
- {
- GetPlayerName(playerid, killedplayer, sizeof(killedplayer));
- format(string, sizeof(string), "Voc� ganhou passagem para Liberty City %d pois matou %s que tinha a passagem.", Cartao[playerid], killedplayer);
- SendClientMessage(killerid, COLOR_GREEN, string);
- Cartao[killerid] = Cartao[playerid];
- Cartao[playerid] = 0;
- }
- }
- //fim do OnPlayerDeath se for aqui...
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment