Jump to content

xxSPEEDYxx

Membru
  • Posts

    1,614
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by xxSPEEDYxx

  1. Ce-i greu?

    De exemplu, comanda:

    if ( strcmp( cmdtext, "/killnoobs", true ) == 10 )
    {
        SetPlayerHealth( playerid, 0 );
        SendClientMessage( playerid, ~1, "I kill you, noob!" );
        return 1;
    }
    
    in ZCMD va fi:
    [code]
    CMD:killnoobs( playerid, params[ ] )
    {
        SetPlayerHealth( playerid, 0 );
        SendClientMessage( playerid, ~1, "I kill you, noob!" );
        return 1;
    }
    

    + ca comenzile in ZCMD trebuie sa fie in afara oricarui callback.

  2. LOL?

    public OnPlayerUpdate(playerid)

    {

        SetTimerEx("CheckMoney", 2000, true, "i", playerid);

        return 1;

    }

    Mi se pare o prostie asta :| ... deci OnPlayerUpdate se actioneaza de mai multe ori pe secunda, iar tu ii pui in el si un timer la 2 secunde? /:) WTF?!

    Mai bine ai pune un Timer la OnFilterScriptInit, sau ai implementa functia CheckMoney, la OnPlayerUpdate

×
×
  • 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.