Jump to content
  • 0

timp comanda


shaun

Question

sall all...as vrea sa stiu urmatorul lucru:

cum pot ca atunci cand un player se connecteaza,doar peste vreo 10 minute sa poata accesa o comanda

else

SendClientMessage(playerid,-1,"Trebuie sa astepti 10 minute WAI!!");

asta sa se intample la else

VA ROG! MS  :shocked:

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest PlayON

new Wait[ MAX_PLAYERS ];

public OnPlayerConnect( playerid )

{

    Wait[ playerid ] = 1;

    SetTimerEx( "DisableWaiting",10 * 1000, false, "i", playerid );

    return 1;

}

forward DisableWaiting( p );

public DisableWaiting( p )

{

    SendClientMessage( p, 0xDFFF30FF, "Ai voie sa folosesti comenzile de acum incolo!");

    Wait[ p ] = 0;

}

public OnPlayerCommandText( playerid, cmdtext[ ] )

{

    if ( Wait[ playerid ] )

    {

        SendClientMessage( playerid, 0xFF2020FF, "ERROR: {FFFFFF} Ai voie sa folosesti comenzile la doar 10 secunde de cand te-ai conectat!");

        return 0;

    }

    return 0;

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.