Jump to content

alinutz_boy32

Membru
  • Posts

    91
  • Joined

  • Last visited

    Never

Posts posted by alinutz_boy32

  1. nu am stock decat -

    [pawn]public ModCar ( playerid ) { // changed to switch method to reduce processor load on server

    // new modelid = GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) ; // this executes a fair amt of stuff , so running it once to populate variable  ( modelid ) , THEN checking variable , makes more sense

    switch ( pmodelid [ playerid ] ) {

            case 562 , 565 , 559 , 561 , 560 , 575 , 534 , 567 , 536 , 535 , 576 , 411 , 579 , 602 , 496 , 518 , 527 , 589 , 597 , 419 ,

    533 , 526 , 474 , 545 , 517 , 410 , 600 , 436 , 580 , 439 , 549 , 491 , 445 , 604 , 507 , 585 , 587 , 466 , 492 , 546 , 551 , 516 ,

    426 , 547 , 405 , 409 , 550 , 566 , 540 , 421 , 529 , 431 , 438 , 437 , 420 , 525 , 552 , 416 , 433 , 427 , 490 , 528 ,

    407 , 544 , 470 , 598 , 596 , 599 , 601 , 428 , 499 , 609 , 524 , 578 , 486 , 406 , 573 , 455 , 588 , 403 , 514 , 423 ,

    414 , 443 , 515 , 456 , 422 , 482 , 530 , 418 , 572 , 413 , 440 , 543 , 583 , 478 , 554 , 402 , 542 , 603 , 475 , 568 , 504 , 457 ,

            483 , 508 , 429 , 541 , 415 , 480 , 434 , 506 , 451 , 555 , 477 , 400 , 404 , 489 , 479 , 442 , 458 , 467 , 558: {

        ShowMenuForPlayer ( TuningMenu , playerid ) ;

        TogglePlayerControllable ( playerid , 0 ) ;

    return SendClientMessage ( playerid , COLOR_WHITE , " [ INFO ] Select an item and push the SPACEBAR to approve." ) ;

    }

    default: return SendClientMessage ( playerid , COLOR_RED , " [ Atentie ] Nu este permis de a modifica acest vehicul[/tune] " ) ;

    }

    return 1;

    }[/pawn]

  2. [pawn]CMD:tune ( playerid , params [ ] )

    {

    new playerstate = GetPlayerState ( playerid ) ;

    if ( playerstate == PLAYER_STATE_DRIVER )

    {

        return ModCar ( playerid ) ;

    }

    else

    {

      return SendClientMessage ( playerid , COLOR_RED , "{B3B3B3} Nu poti folosi /tune daca nu esti soferul" ) ;

    }

    }[/pawn]

  3. Salut vreau cand un admin scrie ceva sa scrie admin:... , tot la fel si la vip!

    Am bagat acestea la on playertext si tot nu merge cand sciu cv scrie numele:si ce scri [alb]...

    [pawn]if ( !PlayerInfo [ playerid ] [ Level ] && !PlayerInfo [ playerid ] [ Vip ] )

        {

    new str [ 500 ];

    format ( str , 500 , "{AD8693} [%d] : {AD8693}%s" , playerid , text [ 0 ] ) ;

    SendPlayerMessageToAll ( playerid , str ) ;

    return 0;

    }

    else if ( PlayerInfo [ playerid ] [ Level ] > 0 )

        {

    new str [ 500 ];

    format ( str , 500 , "{AD8693} [%d] {B3B3B3} [Admin] : {AD8693}%s" , playerid , text [ 0 ] ) ;

    SendPlayerMessageToAll ( playerid , str ) ;

    return 0;

    }

    else if ( PlayerInfo [ playerid ] [ Vip ] > 0 )

        {

    new str [ 500 ];

    format ( str , 500 , "{AD8693} [%d] {B3B3B3} [V.I.P] : {AD8693}%s" , playerid , text [ 0 ] ) ;

    SendPlayerMessageToAll ( playerid , str ) ;

    return 0;

    }

    }[/pawn]

  4. [pawn]public OnPlayerDisconnect ( playerid , reason )

    {

    new

            string [ 500 ] ,

            name [ MAX_PLAYER_NAME ];

        GetPlayerName ( playerid , name , MAX_PLAYER_NAME ) ;

        switch ( reason )

        {

            case 0: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Timed out )" , name ) ;

            case 1: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Leaving )" , name ) ;

            case 2: format ( string , sizeof string , "{AD8693}%s{B3B3B3} a parasit serverul. {B3B3B3} ( Kicked/Banned )" , name ) ;

        }

        SendClientMessageToAll ( 0xAD8693AA , string ) ;

        mDM [ playerid ] = false ;

        if ( PlayerInfo [ playerid ] [ pCar ] != -1 ) CarDeleter ( playerid , PlayerInfo [ playerid ] [ pCar ] ) ;

        format ( Query , 256 , "UPDATE `Users` SET `Level`='%d' , `Warnings`='%d' , `Vip`='%d' , `Kills`='%d' , `Deaths`='%d' , `Money`='%d' , `Score`='%d' , `Coins`='%d' , `XP` = '%d' WHERE `Name`='%s'" ,

    PlayerInfo [ playerid ] [ Level ] , PlayerInfo [ playerid ] [ Warnings ] , PlayerInfo [ playerid ] [ Vip ] , PlayerInfo [ playerid ] [ Kills ] , PlayerInfo [ playerid ] [ Deaths ] , GetPlayerMoney ( playerid ) , GetPlayerScore ( playerid ) , PlayerInfo [ playerid ] [ Coins ] , PlayerInfo [ playerid ] [ xp ] , GetName ( playerid ) ) ;

    db_query ( Database , Query ) ;

    iPlayerChatTime[playerid] = 0;

    szPlayerChatMsg[playerid] = "";

    return 1;

    }

    [/pawn]

  5. aceasta este comanda!

    [pawn]CMD:setlevel ( playerid , params [ ] )

    {

    new level , id;

    if ( PlayerInfo [ playerid ] [ Level ] == 6 || IsPlayerAdmin ( playerid ) )

    {

        if ( sscanf ( params , "ud" , id , level ) )

        {

    SendClientMessage ( playerid , red , "{FF0000}Foloseste /setlevel [ id ] [ level ]" ) ;

        }

        else if ( id == INVALID_PLAYER_ID )

            {

    SendClientMessage ( playerid , red , "{B3B3B3} Id-ul introdus este gresit" ) ;

            }

            else if ( level > 6 )

            {

                SendClientMessage ( playerid , red , "{B3B3B3} Level incorect , levelul maxim e 6" ) ;

            }

            else

            {

            new str [ 150 ];

                format ( str , 150 , "{B3B3B3}I-ai setat lui {FF0000}%s {B3B3B3}levelul de admin la {FF0000}%d" , GetName ( id ) , level ) ;

                SendClientMessage ( playerid , red , str ) ;

                format ( str , 150 , "{B3B3B3}%s ti-a setat {B3B3B3}levelul de admin la {FF0000}%d" , GetName ( playerid ) , level ) ;

                SendClientMessage ( id , red , str ) ;

    PlayerInfo [ id ] [ Level ] = level;

            }

    }

    else

    {

        SendClientMessage ( playerid , red , "{B3B3B3} Trebuie sa fii admin level 6 pentru a folosi aceasta comanda" ) ;

    }

    return 1;

    }[/pawn]

  6. am pus si nu dispare ...

    OnPlayerEnterVehicle

    [pawn] if(Roman[playerid] == 0)

        {

      new string[256];

    format(string, sizeof(string),"~g~Press ~r~2 ~g~to fix the car and you ~r~click ~g~to add ~r~NITRO!");

    TextDrawSetString(Textdrawtext1,string);

        TextDrawShowForPlayer(playerid,Textdrawtext1);

    new bstring[256];

    format(bstring, sizeof(bstring),"_____~g~Type ~r~/tunar ~g~for tune this vehicle or ~r~/tc1-3.");

    TextDrawSetString(Textdrawtext2,bstring);

        TextDrawShowForPlayer(playerid,Textdrawtext2);

    new zbstring[256];

    format(zbstring, sizeof(zbstring),"___Press ~r~Click ~w~for hide this message!");

    TextDrawSetString(Textdrawtext3,zbstring);

        TextDrawShowForPlayer(playerid,Textdrawtext3);

    }

        if(Roman[playerid] == 1)

        {

      new string[256];

    format(string, sizeof(string),"~g~Apasa ~r~2 ~g~pentru a repara masina si apasa ~r~click ~g~pentru ~r~NITRO!");

    TextDrawSetString(Textdrawtext1,string);

        TextDrawShowForPlayer(playerid,Textdrawtext1);

    new bstring[256];

    format(bstring, sizeof(bstring),"_______~g~Pentru ati tuna masina foloseste ~r~/tune ~g~sau ~r~/tc1-3.");

    TextDrawSetString(Textdrawtext2,bstring);

        TextDrawShowForPlayer(playerid,Textdrawtext2);

    new zbstring[256];

    format(zbstring, sizeof(zbstring),"____Apasa ~r~Click ~w~pentru a inchide mesajul!");

    TextDrawSetString(Textdrawtext3,zbstring);

        TextDrawShowForPlayer(playerid,Textdrawtext3);

    }

    return 1;

    }[/pawn]

    Dar la public OnPlayerExitVehicle(playerid, vehicleid) , nu reusesc sa fac !

  7. acum imi da 1 warning

    D:\Romania Play Stunt\gamemodes\RPS.pwn(11529) : warning 203: symbol is never used: "CMD_setallcash"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Warning.

    11529  e sfarsitul GM

  8. 7232 :  [pawn]return SendClientMessageToAll(blue, string);[/pawn]

    am pus alea si iauite ce imi apare

    D:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1253) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1525) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1540) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 001: expected token: ")", but found "&"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 029: invalid expression, assumed zero

    D:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 010: invalid function or declaration

    D:\Romania Play Stunt\gamemodes\RPS.pwn(6634 -- 6636) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    6634: [pawn]stock CMDMessageToAdmins(playerid,command[])[/pawn]

    1540: [pawn]  new string[256];[/pawn]

    1525: [pawn]  new string[256];[/pawn]

    1253: [pawn]      string [ 500 ] ,[/pawn]

  9. D:\Romania Play Stunt\gamemodes\RPS.pwn(7223) : error 017: undefined symbol "CMDMessageToAdmins"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(7231) : error 017: undefined symbol "pName"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(7232) : error 017: undefined symbol "blue"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(7233) : warning 217: loose indentation

    D:\Romania Play Stunt\gamemodes\RPS.pwn(7234) : error 054: unmatched closing brace ("}")

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

    [pawn]

    7223        CMDMessageToAdmins(playerid,"SETALLCASH");

    7231 format(string,sizeof(string),"Administrator \"%s\" has set all players cash to '$%d'", pName(playerid), var );

    7233   } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");

    7234      }

    [/pawn]

  10. Cum fac sa pun la un anumit textdraw cand tastez tasta n sa dispara!

    Mie imi trb pt un sistem de nitro pt motocicleta ! am nitro dupa alt sau click si mai am o functie pt un textdraw sa dispara tot dupa aceste taste...

    Cum schimb tastele la sistemul de nistro!

    [pawn]#define PRESSED(%0) \

    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))[/pawn]

  11. D:\Romania Play Stunt\gamemodes\RPS.pwn(1479) : error 017: undefined symbol "Roman"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1479) : warning 215: expression has no effect

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1479) : error 001: expected token: ";", but found "]"

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1479) : error 029: invalid expression, assumed zero

    D:\Romania Play Stunt\gamemodes\RPS.pwn(1479) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

      1479:   if(Roman[playerid] == 0)

  12. 1) Cum fac sa imi dispara acest Msj cand dau click?

    untitled.png

    2 ) Am un sstem Vup in GM si are un bug... Porneste optiunea vup .. dar nu gasesc tasta dupa care sa ridic masina in sus! (Ar trebui dupa caps lock dar nu merge .. )

    3) Am un reaction test! Unde gasesc timerul? e setat la 13 min , eu vreau sa il dau la 2 min ... cum fac?

    Multumesc Sa-mp.ro

  13. Trebuie sa fie in genu asta!

    [pawn]CMD:giveallcash ( playerid , params [ ] )

    {

    if ( PlayerInfo [ playerid ] [ Level ] >= 5 || IsPlayerAdmin ( playerid ) )

    {

        new cash;

        if ( sscanf ( params , "d" , cash ) )

        {

        SendClientMessage ( playerid , red , "{FF0000}Foloseste /giveallcash [ suma ]" ) ;

        SendClientMessage ( playerid , red , "{FF0000}ATENTIE!:{AD8693}Nu da o suma exagerat de mare" ) ;

        }

        else

        {

        for ( new i = 0;i <MAX_PLAYERS;i++ )

        {

    GivePlayerMoney ( i , cash ) ;

    new str [ 150 ];

                format ( str , 150 , "{B3B3B3}Administratorul {FF0000}%s {B3B3B3}a dat tuturor playerilor o suma de {FF0000}%d $" , GetName ( playerid ) , cash ) ;

                SendClientMessage ( i , red , str ) ;

        }

    }

    }

    else

    {

        SendClientMessage ( playerid , red , "{B3B3B3}Trebuie sa fii macar admin level 5 pentru a folosi aceasta comanda" ) ;

    }

    return 1;

    }[/pawn]

  14. [pawn]D:\Sa-MP\RXS\RXS\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\RXS\RXS\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\RXS\RXS\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\Sa-MP\RXS\RXS\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(1458) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(4105) : warning 225: unreachable code

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(6943) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(6956) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(6964) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7446) : error 001: expected token: ")", but found "&"

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7446) : error 001: expected token: ";", but found "&"

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7448) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7451) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7456) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7457) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7459) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7467) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(7469) : error 010: invalid function or declaration

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(10233) : warning 219: local variable "string" shadows a variable at a preceding level

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(11783) : warning 203: symbol is never used: "string"

    D:\RTD\RTD\RSU\gamemodes\RST.pwn(11783) : warning 203: symbol is never used: "var"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    9 Errors.[/pawn]

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