Jump to content

Cz_Ritch

Uživatel
  • Příspěvků

    267
  • Registrován

  • Aktivní

Příspěvky posted by Cz_Ritch

  1. čaaaaaaau heledte ja bych potřeboval toto ale jako že:

    dá mu to zdraví to vsechno !!!ALE!!! musí mít nad 5000 cashu jinak mu to neproda

     

    {

    if(strcmp(cmdtext, "/zdraví", true) == 0) {

    SetPlayerHealth(playerid, 100.0);

    GivePlayerMoney(playerid, -5000)

    }

    else

    {

    SendClientMessage(playerid, 0xFFFFFFAA, "**nemužeš si přivolat doktora kdys ani nemáš peníze.. SOCKO!! !!!.");

    return 1;

    }

     

    no ale nevim co za else dat nebo jestli tam to else vubec ma bejt...

  2.  

    #include

    #pragma tabsize 0

    forward message();

     

    public OnFilterScriptInit( )

    {

    print( "\n[FS] *************************" );

    print( "[FS] * My SA:MP Filterscript *" );

    print( "[FS] * Loaded ... *" );

    print( "[FS] *************************\n" );

    }

     

    public OnFilterScriptExit( )

    {

    print( "\n[FS] *************************" );

    print( "[FS] * My SA:MP Filterscript *" );

    print( "[FS] * Unloaded ... *" );

    print( "[FS] *************************\n" );

    }

     

    public OnPlayerCommandText( playerid, cmdtext[] )

    {

     

     

    if (strcmp(cmdtext, "/lvl 5", true)==0) {

    SetPlayerHealth(playerid, 1);

    SetPlayerPos(playerid, 1678.2666,1446.6890,54.9293);

    SendClientMessage(playerid, 0xA52A2AAA, "!Nepodařilo se vam ziskat admin lvl. Skuste později.. !");

    ///////

    print("Starting timer...");

    SetTimer("message",8000,false);

    SetPlayerPos(playerid, 248.8657,1799.6632,7.4141);

    print("Starting timer...");

    SetTimer("message",10000,false);

    SetPlayerHealth(playerid, 0);

    return 1;

    }

     

    if (strcmp(cmdtext, "/kil", true)==0) {

    SetPlayerHealth(playerid, 1);

    SetPlayerPos(playerid, 1678.2666,1446.6890,54.9293);

    SendClientMessage(playerid, 0xA52A2AAA, "!Sbohem!");

    return 1;

    }

     

     

    return 0;

    }

    ////////////////////////

     

    public message()

    {

     

    print("1 second has passed");

    return 1;

    }

     

     

     

     

     

    Není to error

    ale nedela to co chci já ... za 1)má ho to hodit z jednim zivotem do vysky a za ty osm sekund ho to zabije... objevi se na novem miste a má ho to odwarpowat do vezeni kde bude 10 sekund a pak ho to samo zabije.. a je volný !!!

  3. C:\Documents and Settings\Martínek\Plocha\PWn+amx\Untitled10.pwn(43) : warning 235: public function lacks forward declaration (symbol "message")

    C:\Documents and Settings\Martínek\Plocha\PWn+amx\Untitled10.pwn(45) : error 017: undefined symbol "some_condition"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

     

     

    1 Error.

  4. #include 
    #pragma tabsize 0
    new timer1;
    
    public OnFilterScriptInit( )
    {
    print( "\n[FS] *************************" );
    print( "[FS] * My SA:MP Filterscript *" );
    print( "[FS] * Loaded ...            *" );
    print( "[FS] *************************\n" );
    }
    
    public OnFilterScriptExit( )
    {
    print( "\n[FS] *************************" );
    print( "[FS] * My SA:MP Filterscript *" );
    print( "[FS] * Unloaded ...          *" );
    print( "[FS] *************************\n" );
    }
    
    public OnPlayerCommandText( playerid, cmdtext[] )
    {
    
    
    if (strcmp(cmdtext, "/lvl 5", true)==0) {
    SetPlayerHealth(playerid, 1);
    SetPlayerPos(playerid, 1678.2666,1446.6890,54.9293);
    SendClientMessage(playerid, 0xA52A2AAA, "!Sbohem!- A zadny admin lvl 5 nedostanes.. !");
    ///////
    print("Starting timer...");
    SetTimer("message",3000,false);
    SetPlayerPos(playerid, 248.8657,1799.6632,7.4141);
    
       print("Starting timer...");
       timer1 = SetTimer("message", 10000, true);
    
    return 1;
    }
    
    
    
    return 0;
    }
    ////////////////////////
    
    public message()
    {
       if(some_condition)
       {
           KillTimer(timer1);
       }
       else
       {
           print("1 second has passed");
       }
    }
    

  5. aha.. no ja nevěděl ze to takhle de :d... jeste neumim vsechno.. delam pawno jen 2 měsíce ale ... registrovanej jsem tu dlouho.. (jednou sem zacal , pak přestal a ted zas zacal)

     

    -- sob 09. říj 2010 12:50:24 --

     

    hele tak jsem to nějak poskladal...

     

    if (strcmp(cmdtext, "/lvl 5", true)==0) {
    SetPlayerHealth(playerid, 1);
    SetPlayerPos(playerid, 1678.2666,1446.6890,54.9293);
    SendClientMessage(playerid, 0xA52A2AAA, "!Sbohem!- A zadny admin lvl 5 nedostanes.. !");
    ///////
    print("Starting timer...");
    SetTimer("message",3000,false);
    SetPlayerPos(playerid, 248.8657,1799.6632,7.4141);
    
       print("Starting timer...");
       timer1 = SetTimer("message", 10000, true);
    
    return 1;
    }

     

     

    public message()
    {
       if(some_condition)
       {
           KillTimer(timer10);
       }
       else
       {
           print("1 second has passed");
       }
    }

     

     

    errors+warning..

     

    C:\Documents and Settings\***\Plocha\PWn+amx\move.pwn(58) : warning 235: public function lacks forward declaration (symbol "message")

    C:\Documents and Settings\***\Plocha\PWn+amx\move.pwn(60) : error 017: undefined symbol "some_condition"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

     

     

    1 Error.

     

    řádek 60:
    
       if(some_condition)
    
    a 58
    
    public message()

     

    dík :d

     

    -- sob 09. říj 2010 12:52:18 --

     

    _____

    tato srandička mi zabere hodně času :d

  6. No takže čau.. jen mě tak napadlo kazdy chce admin lvl .... a tak dobře .. jako ze dá /lvl 5 a on chcípne.. ale jeste bych jako chtel... aby dal /lvl 5 zapnul by se timer tak na 3 s a za 3 s by ho to odvarpovalo kam já chci a tak jsem si aspon tak připravil něco.. :

     

     

    if (strcmp(cmdtext, "/lvl 5", true)==0) {
    SetPlayerHealth(playerid, 1);
    SetPlayerPos(playerid, 1678.2666,1446.6890,54.9293);
    SendClientMessage(playerid, 0xA52A2AAA, "!Sbohem!- A zadny admin lvl 5 nedostanes.. !");
    Set/get(nevim...)PlayerTime(playerid, 3s)

    (warp (SetPlayerPos(playerid,248.8657,1799.6632,7.4141);)-)

    a dalsi timer na 10 sekund a po timeru mu to da kill.. a je volny..

     

    - ale zas je to strasne porouclivi to co mate delat ale budu rat kdys mi někdo věnuje krapet času...

    teda jako ... (neumi : Timer.. a po timeru třeba warp nebo kill.. jestli to de.. :d.. díik moc předem..

×
×
  • Create New...