PlayWorld Community

Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.

4 participanți

    [AMXX] Wait Time 1.0

    avatar
    r3p


    Mesaje : 2
    Data de inscriere : 29/07/2013

    [AMXX] Wait Time 1.0 Empty [AMXX] Wait Time 1.0

    Mesaj Scris de r3p Lun Iul 29, 2013 12:16 am

    Mai stiti boti aia care vin pe server si fac reclama pentru 10 sec , si dupaia ies ?
    Ei bine nu va mai fi o problema cu Wait Time !
    Versiune : 1.0
    Author : r3p
    Sursa :



     

    #include < amxmodx >











    #define PLUGIN_NAME "Wait Time"


    #define PLUGIN_AUTHOR "r3p"





    enum { playerSeconds, playerMinutes, playerHours };





    public plugin_init( )


    {


      register_plugin( PLUGIN_NAME, "1.1", PLUGIN_AUTHOR );


      register_clcmd("say" , "hook_say");


      register_clcmd("say_team" , "hook_say");








    }


    public hook_say(id)


    {


        if( get_user_time(id, playerSeconds) <= 25 )


         {


    client_print(id,print_chat,"[AMXX] Asteapta 25 de secunde inainte de a putea vorbi !")


         return PLUGIN_HANDLED;


        }else{


         return PLUGIN_CONTINUE;


     }  


    }


    stock playedTime( id, type )


    {


      switch( type )


      {


         case playerSeconds:


         {


            get_user_time( id, 1 );


         }


         case playerMinutes:


         {


            get_user_time( id, 1 ) / 60;


         }


         case playerHours:


         {


            get_user_time( id, 1 ) / 3600;


         }


      }


      return false;


    }
    avatar
    Miti # N-am Inima.


    Mesaje : 20
    Data de inscriere : 19/08/2013

    [AMXX] Wait Time 1.0 Empty Re: [AMXX] Wait Time 1.0

    Mesaj Scris de Miti # N-am Inima. Lun Aug 19, 2013 10:15 pm

    r3p esti foarte bun in scripting,felicitari!!;)
    WsSCaTaLYn
    WsSCaTaLYn


    Zodiac : Pesti Mesaje : 310
    Data de inscriere : 15/08/2013
    Varsta : 29

    [AMXX] Wait Time 1.0 Empty Re: [AMXX] Wait Time 1.0

    Mesaj Scris de WsSCaTaLYn Mar Aug 20, 2013 3:02 am

    cunosc scriptul, intradevar este foarte bun, putin stresant dar bun.
    insa daca el nu vorbeste alea 25 secunde cu ce schimba situatia?
    zic asta deoarece : trec cele 25 secunde, da mesajul si pleaca la fel de repede.
    BogdanYoYo
    BogdanYoYo
    Admin


    Zodiac : Taur Mesaje : 553
    Data de inscriere : 08/04/2013
    Varsta : 26
    Localizare : Brasov

    [AMXX] Wait Time 1.0 Empty Re: [AMXX] Wait Time 1.0

    Mesaj Scris de BogdanYoYo Mier Aug 21, 2013 6:15 am

    :pro: 

    Continut sponsorizat


    [AMXX] Wait Time 1.0 Empty Re: [AMXX] Wait Time 1.0

    Mesaj Scris de Continut sponsorizat


      Data/ora curentă este: Dum Iul 07, 2024 6:47 am