Jump to content

WanTeD

Membru
  • Posts

    297
  • Joined

  • Last visited

    Never

Posts posted by WanTeD

  1. [pawn] if( strcmp( cmdtext, "/credits", true) == 0 )

    {

    new string[ 1024 ], plname[ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, plname, sizeof( plname ) );

    strcat( string, "{66CCFF}Te-ai gandit vreo data cine a contribuit la crearea acestui server?\n{66CCFF}Uite ca iti spunem aici!\n\n{FF0000}Scripteri:\n{FFFFFF}[TnT]Rimmon \n AliNuTzZz\n\n", 1024 );

    strcat( string, "{FF0000}Creatorii GM-ului:\n{FFFFFF}Tasmell\n\n{FF0000}Creatorii Hartilor:\n{FFFFFF}vampir_md\n\n{FF0000}Web Site:\n{FFFFFF}nume\n\n", 1024 );

    strcat( string, "{FF0000}Others:\n{FFFFFF}nume\n{FFFFFF}nume\n\n", 1024 );

    strcat( string, "{FF0000}Cel mai bun jucator: %s\n", 1024, plname );

    strcat( string, "{FF0000}=====================================================\n{3300FF}Deadly {FFFF00}Maximum {FF0000}Stunt\n{0099FF}Visit {FFFFFF}wWw.Deadly.tk\n{0099FF}\n{FF0000}=====================================================", 1024 );

    ShowPlayerDialog( playerid, 12000, DIALOG_STYLE_MSGBOX, "{3399FF}-= Creatorii RST =-", string, "Ok","" );

    return ( 1 );

    } [/pawn]

  2. [pawn]

    public OnPlayerDeath( playerid, killerid, reason )

    {

        PlayerInfo[ playerid ][ Deaths ]++;

    if( IsPlayerConnected( killerid ) && killerid != INVALID_PLAYER_ID )

    {

          PlayerInfo[ killerid ][ Kills ]++;

        }

    return ( 1 );

    }

    [/pawn]

  3. nu ai modificat nimic  acolo , si tot nu merge .

    Uitate bine,nici nu ai incercat,esti constient,leai verificat barem sa vezi ce am scos ?

    Tu ai incheiat functia,si dupa ai pus { },sigur nu ai incercat.

    if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5));

  4. acum imi apare de 2 ori odata ce scriu eu si odata "

    Si daca vrei poti sa imi spui knd scriu sa imi arate ex: nume jucator id jucator si ce a scris jucatorul?

    Testeaza:

    [pawn]public OnPlayerText( playerid, text[ ] )

    {

    if( IsPlayerFlooding( playerid ) && !IsPlayerAdmin( playerid ) )

    {

        SendClientMessage( playerid, 0xFF0000FF, "*{CC00FF} You can only send a message once every two seconds." );

        return ( 0 );

    }

    if ( !IsPlayerAdmin( playerid ) )

    {

    if ( strlen( text ) == strlen( szPlayerChatMsg[ playerid ] ) && !strcmp( szPlayerChatMsg[ playerid ], text,  false ) )

    {

    SendClientMessage( playerid, 0xFF0000FF, "*{CC00FF} Please do not repeat yourself." );

    format( szPlayerChatMsg[ playerid ], 128, "%s", text );

    return ( 0 );

    }

    }

    format( szPlayerChatMsg[ playerid ], 128, "%s", text );

        iPlayerChatTime[ playerid ] = GetTickCount( );

    new rand = random( sizeof( BubbleColors ) );

    SetPlayerChatBubble( playerid, text, BubbleColors[ rand ][ 0 ], 300.0, 5000 );

    new Text[ 128 ];

        format( Text, 128, "[%d]: %s", playerid, text );

        SendPlayerMessageToAll( playerid, Text );[/pawn]

  5. [pawn]  if(CP[playerid]==77)//

        {

            if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

          {

            towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

            GivePlayerMoney(playerid, 10000);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

            GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

            SetVehicleToRespawn(towedcar);

            DisablePlayerCheckpoint(playerid);

    }

        }

    if(CP[playerid]==76)//

        {

            if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

    {

            towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

            GivePlayerMoney(playerid, 10000);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

            GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

            SetVehicleToRespawn(towedcar);

            DisablePlayerCheckpoint(playerid);

    }

        }

    if(CP[playerid]==75)//

        {

            if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

    {

            towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

            GivePlayerMoney(playerid, 10000);

            SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

            GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

            SetVehicleToRespawn(towedcar);

            DisablePlayerCheckpoint(playerid);

    }

        }

    return 1;

    }[/pawn]

  6. [pawn]public OnPlayerText( playerid, text[ ] )

    {

    if( IsPlayerFlooding( playerid ) && !IsPlayerAdmin( playerid ) )

    {

        SendClientMessage( playerid, 0xFF0000FF, "*{CC00FF} You can only send a message once every two seconds." );

        return ( 0 );

    }

    if ( !IsPlayerAdmin( playerid ) )

    {

    if ( strlen( text ) == strlen( szPlayerChatMsg[ playerid ] ) && !strcmp( szPlayerChatMsg[ playerid ], text,  false ) )

    {

    SendClientMessage( playerid, 0xFF0000FF, "*{CC00FF} Please do not repeat yourself." );

    format( szPlayerChatMsg[ playerid ], 128, "%s", text );

    return ( 0 );

    }

    }

    format( szPlayerChatMsg[ playerid ], 128, "%s", text );

        iPlayerChatTime[ playerid ] = GetTickCount( );

    new rand = random( sizeof( BubbleColors ) );

    SetPlayerChatBubble( playerid, text, BubbleColors[ rand ][ 0 ], 300.0, 5000 );

    if(Language[playerid] == ROM)

    {

    new MMM[ 256 ];

    format( MMM, sizeof( MMM )," %s ", text );

    SendPlayerMessageToAll( playerid, MMM );

    }

    if ( Language[ playerid ] == ENG )

    {

    new MMM[ 256 ];

    format( MMM, sizeof( MMM ),"%s", text );

    SendPlayerMessageToAll( playerid, MMM );

    }[/pawn]

  7. Testeaza:

    [pawn]if ( strcmp( cmd, "/givescore", true ) == 0 )

    {

    if ( PlayerInfo[ playerid ][ LoggedIn ] == 1 )

    tmp = strtok( cmdtext, idx );

    if(!strlen(tmp)) return SendClientMessage( playerid, COLOR_WHITE, "Foloseste: /givescore [playerid] [score]" );

    giveplayerid = strval(tmp);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Foloseste: /givecash [playerid] [score]");

    new scores;

    scores = strval( tmp );

    if ( IsPlayerConnected( giveplayerid ) )

    {

    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

    GetPlayerName(playerid, sendername, sizeof(sendername));

    new playerscore;

    playerscore = GetPlayerScore(playerid);

    if (scores > 0 && playerscore >= scores) {

    SetPlayerScore(playerid, playerscore - scores);

    SetPlayerScore(giveplayerid, GetPlayerScore( giveplayerid ) + scores);

    format(string, sizeof(string), "I-ai trimis lui %s(player: %d), %d score.", giveplayer,giveplayerid, scores);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    format(string, sizeof(string), "Ai primit %d score de la %s(player: %d).", scores, sendername, playerid);

    SendClientMessage(giveplayerid, COLOR_YELLOW, string);

    printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, scores, giveplayer, giveplayerid);

    }

    else

    {

    SendClientMessage(playerid, COLOR_YELLOW, "Score invalid.");

    }

    else

    {

    format(string, sizeof(string), "%d nu este activ.", giveplayerid);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    }

    return 1;

    }[/pawn]

  8. Off:mam gandit la v3 ceva cu mai multe curse mai multe checkpointuri..cu text3dlabel..

    on:multumesc

    off din nou:) stiu ca nu am voie sa fac off topic si post unu dupa altul dar am vrut sa va spun si de v3

    Sper sa fi-e ceva mai bun V3,decat V2,mi se pare prea simpla versiunea asta.

  9. [pawn]forward UcideMasinileBoule(vehicleid);

    public UcideMasinileBoule(vehicleid)

    {

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

            new Float:X,Float:Y,Float:Z;

        if(IsPlayerInVehicle(i, vehicleid)) {

            RemovePlayerFromVehicle(i);

            GetPlayerPos(i,X,Y,Z);

            SetPlayerPos(i,X,Y+3,Z);

        }

        SetVehicleParamsForPlayer(vehicleid,i,0,1);

    }

        SetTimerEx("VehRes",1500,0,"i",vehicleid);

    }[/pawn]

    And:

    [pawn]public caidadeficha()

    {

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

    {

    CostoDelViaje=CostoDelViaje+PRECIO_FICHA;

    }

    }[/pawn]

  10. Jetpack:

    - Strcmp

    [pawn]if ( strcmp( cmdtext, "/jetpack" , true ) == 0 )

    {

            SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK );

            return ( 1 );

    }[/pawn]

    - Zcmd

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

    {

          SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK );

          return ( 1 );

    }[/pawn]

    Flip:

    - Strcmp

    [pawn]if ( strcmp( cmdtext, "/flip", true )== 0 )

    {

            new VehicleID,

                    Float:X,

                    Float:Y,

                    Float:Z

            ;

            new State=GetPlayerState( playerid );

            if ( IsPlayerInAnyVehicle( playerid ) && State == PLAYER_STATE_DRIVER )

            {

    GetPlayerPos( playerid, X, Y, Z );

    VehicleID = GetPlayerVehicleID( playerid );

    SetVehiclePos( VehicleID, X, Y, Z );

    SetVehicleZAngle( VehicleID, 0 );

    SetVehicleHealth( VehicleID, 1000.0 );

    SendClientMessage( playerid, COLOR_GREY, "Vehicle Fliped!" );

            }

            else SendClientMessage( playerid, COLOR_RED, "Nu esti intr-o masina!" );

            return ( 1 );

    }[/pawn]

    - Zcmd

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

    {

            new VehicleID,

                    Float:X,

                    Float:Y,

                    Float:Z

            ;

            new State=GetPlayerState( playerid );

            if ( IsPlayerInAnyVehicle( playerid ) && State == PLAYER_STATE_DRIVER )

            {

    GetPlayerPos( playerid, X, Y, Z );

    VehicleID = GetPlayerVehicleID( playerid );

    SetVehiclePos( VehicleID, X, Y, Z );

    SetVehicleZAngle( VehicleID, 0 );

    SetVehicleHealth( VehicleID, 1000.0 );

    SendClientMessage( playerid, COLOR_GREY, "Vehicle Fliped!" );

            }

            else SendClientMessage( playerid, COLOR_RED, "Nu esti intr-o masina!" );

            return ( 1 );

    }[/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.