Random options
#5

Quote:
Originally Posted by HondaCBR
Посмотреть сообщение
So where can I store the options? lets say option 1 will send you a message and option 2 will remove you from vehicle. Could you please add that.
pawn Код:
if (strcmp("/jump", cmdtext, true, 5) == 0)
    {
        new rand = random(9);
        if(rand < 7)
        {
            new vehicle = GetPlayerVehicleID(playerid);
            if(IsPlayerInVehicle(playerid, vehicle))
                RemovePlayerFromVehicle(playerid);
        }
        else SendClientMessage(playerid, -1, "Message");
        return 1;
    }
Reply


Messages In This Thread
Random options - by HondaCBR - 23.11.2011, 20:19
Re: Random options - by TheArcher - 23.11.2011, 20:22
Re: Random options - by Sinc - 23.11.2011, 20:45
Re: Random options - by HondaCBR - 23.11.2011, 20:47
Re: Random options - by Sinc - 23.11.2011, 20:51
Re: Random options - by HondaCBR - 23.11.2011, 21:09
Re: Random options - by Sinc - 23.11.2011, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)