[AJUDA] OnPlayerDeath
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid,playerid,reason);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1);
    new pname [MAX_PLAYER_NAME];
    new stringmato[265];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(stringmato, sizeof(stringmato), "Vocк matou %s, e roubou 1000 dele quando o mesmo caiu no chгo", pname);
    SendClientMessage(playerid, SERVIDORDIZ, stringmato);
    GivePlayerMoney(killerid, 1000);
    new kname [MAX_PLAYER_NAME];
    new stringmorreu[265];
    GetPlayerName(killerid, kname, MAX_PLAYER_NAME);
    format(stringmorreu, sizeof(stringmorreu), "Vocк foi morto por %s, e o safado ainda te roubou 1000", kname);
    SendClientMessage(playerid, SERVIDORDIZ, stringmorreu);
    GivePlayerMoney(playerid, -1000);
    ResetPlayerWeapons(playerid);
    return 1;
}
Reply


Messages In This Thread
[AJUDA] OnPlayerDeath - by Mr_Taxi - 20.12.2011, 21:29
Re: [AJUDA] OnPlayerDeath - by Cristhian - 20.12.2011, 22:02
Re: [AJUDA] OnPlayerDeath - by !Niiw - 20.12.2011, 22:02
Re: [AJUDA] OnPlayerDeath - by Lуs - 20.12.2011, 22:06
Re: [AJUDA] OnPlayerDeath - by [O.z]Caroline - 21.12.2011, 01:57
Re: [AJUDA] OnPlayerDeath - by Cristhian - 21.12.2011, 02:12
Re: [AJUDA] OnPlayerDeath - by [O.z]Caroline - 21.12.2011, 02:26
Re: [AJUDA] OnPlayerDeath - by Cristhian - 21.12.2011, 02:32
Re: [AJUDA] OnPlayerDeath - by [O.z]Caroline - 21.12.2011, 02:34
Re: [AJUDA] OnPlayerDeath - by Lуs - 21.12.2011, 02:37

Forum Jump:


Users browsing this thread: 1 Guest(s)