Help with random spawn
#6

Actually you don't really need brackets

pawn Код:
if (strcmp("/shermandm", cmdtext, true, 11) == 0)
{
    switch(random(2))
    {
        case 0: SetPlayerPos(playerid, -688.5651,2094.6106,925.0209) && SetPlayerColor(playerid,blah);
        case 1: SetPlayerPos(playerid, -688.5651,2094.6106,925.0209) && SetPlayerColor(playerid,blah);
    }
    GameTextForPlayer(playerid, "~y~Sherman DeathMatch~r~  by MosQ and Eset", 3000, 4);
    SetPlayerArmour(playerid, 0);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 24, 999);
    return 1;
}
Reply


Messages In This Thread
Help with random spawn - by Gotti_ - 16.02.2011, 13:13
AW: Help with random spawn - by Nero_3D - 16.02.2011, 13:15
Re: Help with random spawn - by Gotti_ - 16.02.2011, 13:26
AW: Re: Help with random spawn - by Nero_3D - 16.02.2011, 14:12
Re: Help with random spawn - by Gotti_ - 16.02.2011, 15:20
Re: Help with random spawn - by Jochemd - 16.02.2011, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)