Random Spawn in Minigame
#3

On top:

pawn Код:
new Minigames;
pawn Код:
CMD:mg3(playerid, params[])
{
    SetPlayerInterior(playerid, 1);
    Minigames = random(5);
    switch(Minigames)
    {
    case 0: SetPlayerPos(playerid,2220,1570,1001);
    case 1: SetPlayerPos(playerid,2205,1579,1001);
    case 2: SetPlayerPos(playerid,2169,1572,1001);
    case 3: SetPlayerPos(playerid,2194,1627,1001);
    case 4: SetPlayerPos(playerid,2218,1614,1001);
    }
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 38, 9999); //38 = Minigun
    SendClientMessage(playerid,COLOR_YELLOW,"Welcome to Minigame Minigun");
    return 1;
}
That shall be fine.
Reply


Messages In This Thread
Random Spawn in Minigame - by AwokenNeoX - 09.05.2013, 18:43
Re: Random Spawn in Minigame - by KingHual - 09.05.2013, 18:46
Re: Random Spawn in Minigame - by Private200 - 09.05.2013, 18:47
AW: Random Spawn in Minigame - by AwokenNeoX - 09.05.2013, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)