08.04.2011, 02:30
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;
}