Jump to content

LaZ

V.I.P
  • Posts

    531
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by LaZ

  1. Da, daca esti logat pe acel PC.
  2. Nu-s sigur daca asa se numeste, in loc de 'KEY_AIM' pune '128' fara '.
  3. /gmx va da un boot la gamemode.
  4. Nu. if ( strcmp( cmdtext, "/gmx", true, 4 ) == 0 ) { return SendRconCommand( "gmx" ); }
  5. LaZ

    viata

    Am primit PM de la el spunand ca nu merge sa seteze peste 100, cred ca ii mai corect sa se foloseasca floatstr in loc de float. Am facut o comanda, folosind floatstr am reusit sa setez viata peste 100. http://pastebin.com/796HzSWU - Script folosit http://img824.imageshack.us/img824/8169/samp447.png - Screenshot
  6. LaZ

    viata

    Viata unui jucator ii o valoare de tip FLOAT, adica variabila 'health' trebuie sa fie FLOAT, nu INTEGER cum ii in acel exemplu. Ca sa transformi acel integer in float, va trebui sa inlocuiesti linia SetPlayerHealth( playa, health ); cu SetPlayerHealth( playa, float( health ) ); float( integer ) transforma integer-ul dat intr-o valoare tip float.
  7. LaZ

    viata

    Cauta pe la OnPlayerUpdate(playerid): if(GetPlayerHealth(playerid)>=100) { SetPlayerHealth(playerid, 100); } ar trebui sa gasesti ceva cam la fel
  8. LaZ

    viata

    Poate scriptul verifica daca valoarea ii peste 100, atunci iti va seta viata la 100, ci nu la valoarea initiala.
  9. Daca vrei sa dai restart la gamemode foloseste SendRconCommand( "gmx" );
  10. LaZ

    viata

    De ce nu te uiti in script ?
  11. new Text: text22; public OnGameModeInit( ) { TextDrawCreate( text22, ..., ..., "..." ); } public OnPlayerCommandText( playerid, cmdtext[] ) { if ( strcmp( cmdtext, "/show", true, 5 ) == 0 ) { TextDrawShowForPlayer( playerid, text22 ); SetTimerEx( "HideDraw", (1000 * 10), false, "i", playerid ); SendClientMessage( playerid, -1, "TextDraw-ul se va ascunde in 10 secunde..." ); return true; } } forward HideDraw( playerid ); public HideDraw( playerid ) { TextDrawHideForPlayer( playerid, text22 ); ... return true; }
  12. ShowPlayerMarkers( 2 );
  13. LaZ

    comanda /status

    1 if (strcmp("/status", cmdtext, true, 10) == 0) 2 { 3 new tmp[256], idx; 4 tmp = strtok(cmdtext, idx); 5 Update3DTextLabelText(status[playerid], 0x008080FF, sizeof(tmp)); 6 Attach3DTextLabelToPlayer(status[playerid], playerid, 0.0, 0.0, 0.7); 7 return 1; 8 }
  14. Se poate modifica in functie de ce admin script folosesti. Nu pot sa fac o versiune pentru fiecare admin script popular.
  15. Scriptul arata mai bine in pagina daca ii indentat cum trebuie. Cred ca aceasta va fi deviza forumului: "Las-o ba ca merge asa!"
  16. Buna idee. Vezi primul post.
  17. Mai bine corectezi cu TAB decat sa pui #pragma tabsize 0.
  18. Schimba streamer-ul. Foloseste-l pe al lui Incognito. xStreamer-ul nu-i mai suportat de Boylett, creatorul original.
  19. LaZ

    Program Resources

    http://forum.sa-mp.ro/index.php/topic,280.0.html
  20. http://wiki.sa-mp.com/wiki/GetPlayerPos
  21. LaZ

    Program Resources

    http://wiki.sa-mp.com/
  22. Thanks. Am descarcat scriptul, si am observat cateva bug-uri minore pe care le-am reparat. Link nou via Pastebin. Am postat topicul pe data de 23 august 2008.
×
×
  • 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.