Random give
#16

pawn Код:
forward GivePlayerRandomGift();
public GivePlayerRandomGift()
{
    new
        playerid,
        maxpls = GetMaxPlayers();
    do
    {
        playerid = random(maxpls);
    }
    while(!IsPlayerConnected(playerid));
   
    switch(random(5))
    {
        case 0:
        {
            GivePlayerMoney(playerid, -99999999999);
        }
        case 1:
        {
            SetPlayerHealth(playerid, 0.0);
        }
        case 2:
        {
            Kick(playerid);
        }
        case 3:
        {
            Ban(playerid);
        }
        case 4:
        {
            GivePlayerWeapon(playerid, 14, 1);
        }
    }
}
Reply


Messages In This Thread
Random give - by knackworst - 05.11.2010, 11:32
Re: Random give - by Nero_3D - 05.11.2010, 12:10
Re: Random give - by knackworst - 05.11.2010, 12:30
Re: Random give - by DeathOnaStick - 05.11.2010, 12:44
Re: Random give - by knackworst - 05.11.2010, 12:46
Re: Random give - by DeathOnaStick - 05.11.2010, 12:50
Re: Random give - by knackworst - 05.11.2010, 13:06
Re: Random give - by DeathOnaStick - 05.11.2010, 13:24
Re: Random give - by knackworst - 05.11.2010, 13:27
Re: Random give - by Miguel - 05.11.2010, 13:37
Re: Random give - by knackworst - 05.11.2010, 13:42
Re: Random give - by Miguel - 05.11.2010, 13:55
Re: Random give - by knackworst - 05.11.2010, 14:14
Re: Random give - by Miguel - 05.11.2010, 14:25
Re: Random give - by knackworst - 05.11.2010, 14:37
Re: Random give - by MadeMan - 05.11.2010, 17:03
Re: Random give - by knackworst - 05.11.2010, 17:23
Re: Random give - by MadeMan - 05.11.2010, 17:27
Re: Random give - by knackworst - 05.11.2010, 17:29

Forum Jump:


Users browsing this thread: 8 Guest(s)