[HELP]How can create this?
#5

Quote:
Originally Posted by Shadow™
Посмотреть сообщение
pawn Код:
#include <a_samp>

#define COLOR_WHITE 0xFFFFFFAA

public OnPlayerConnect(playerid)
{
    SetPVarInt(playerid,"Kills",0);
    SetPVarInt(playerid,"Deaths",0);
    return 1;
}

public OnPlayerDisconnect(playerid)
{
    SetPVarInt(playerid,"Kills",0);
    SetPVarInt(playerid,"Deaths",0);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SetPVarInt(playerid,"Deaths",GetPVarInt(playerid,"Deaths")+1);
    SetPVarInt(killerid,"Kills",GetPVarInt(killerid,"Kills")+1);
    if(GetPVarInt(killerid,"Kills") == 10)
    {
        GivePlayerMoney(killerid, 10000);
        SendClientMessage(killerid,COLOR_WHITE,"You've been awarded $10,000 for getting 10 kills!");
    }
    return 1;
}
Like this or?
I Want a Team Score
Reply


Messages In This Thread
[HELP][UNSOLVED]How can create this? - by eDz0r - 25.07.2010, 18:31
Re: [HELP]How can create this? - by me-borno - 25.07.2010, 18:43
Re: [HELP]How can create this? - by eDz0r - 26.07.2010, 13:07
Re: [HELP]How can create this? - by Shadow™ - 26.07.2010, 13:27
Re: [HELP]How can create this? - by eDz0r - 26.07.2010, 13:46
Re: [HELP]How can create this? - by WillyP - 26.07.2010, 14:12
Re: [HELP]How can create this? - by eDz0r - 26.07.2010, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)