Raised This Month: $ Target: $400
 0% 

[SOLVED] Perform role-specific order?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-24-2015 , 17:41   [SOLVED] Perform role-specific order?
Reply With Quote #1

Hi , I created this basic code to display messages to all players, works fine however I was wondering if you have to run them in the order in this case I used random as in the example:

Code:
#include < amxmodx >

new messages[][] =
{
    "[ZP] Test 1",
    "[ZP] Test 2",
    "[ZP] Test 3"
}

public plugin_init()
{
    set_task(2.0, "show_message");
}

public show_message()
{
    new sizeof_messages = random(sizeof messages);
    client_print(0, print_chat, messages[sizeof_messages]);

    set_task(2.0, "show_message");
}
in short , how to show the messages in order from [ZP] Test 1 until [ZP] Test 3?
__________________









Last edited by CrazY.; 09-26-2015 at 17:23.
CrazY. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode