Random
#2

pawn Код:
COMMAND:job(playerid, params[])
{
    new
        iStr[60],
        iRandMsg[15];

    switch(random(4))
    {
        case 0: iRandMsg = "Passengers";
        case 1: iRandMsg = "Cargo";
        case 2: iRandMsg = "Passengers";
        case 3: iRandMsg = "Cargo";
    }

    TextDrawShowForPlayer(playerid, TruckerInfo[playerid]);
    format(iStr, sizeof(iStr), "Transport need to transport %s", iRandMsg);
    TextDrawSetString(TruckerInfo[playerid], iStr);
    return 1;
}
Reply


Messages In This Thread
Random - by Unknown123 - 08.04.2011, 02:02
Re: Random - by [L3th4l] - 08.04.2011, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)