Jump to content
  • 0

Bug Minigun


alinutz_boy32

Question

14 answers to this question

Recommended Posts

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

{

    if ( DM [ playerid ] == 0 )

    {

        TextDrawShowForPlayer ( playerid , Obj ) ;

TextDrawShowForPlayer ( playerid , ObjBox ) ;

TogglePlayerControllable ( playerid , false ) ;

SetPlayerHealth ( playerid , 100000 ) ;

    SetTimerEx ( "Objects" , 2000 , false , "i" , playerid ) ;

SetTimerEx ( "LoadingObjects" , 2000 , false , "i" , playerid ) ;

        DM [ playerid ] = 1;

        mDM [ playerid ] = 1;

        Mspawn ( playerid ) ;

    }

    else

    {

        if ( DM [ playerid ] == 1 )

        {

            SendClientMessage ( playerid , red , "{B3B3B3}Nu poti folosi aceasta comanda intr-un DM" ) ;

    GameTextForPlayer ( playerid , "~w~Foloseste ~r~/leave ~w~pentru a iesi din DM" , 5000 , 5 ) ;

        }

    }

    return 1;

}[/pawn]

Link to comment
Share on other sites

era asa

[pawn]public OnPlayerDeath ( playerid , killerid , reason )

{

    if(DM[playerid] == 1 && mDM[playerid] == 1) return Mspawn(playerid);

SendDeathMessage ( killerid , playerid , reason ) ;

PlayerInfo [ playerid ] [ Deaths ] ++;

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

{

    PlayerInfo [ killerid ] [ Kills ] ++;

    PlayerInfo [ killerid ] [ Coins ] ++;

    new cash = 100 + random ( 500 ) ;

    GivePlayerMoney ( killerid , cash ) ;

}

return 1;

}[/pawn]

si am facut asa!

[pawn]public OnPlayerDeath ( playerid , killerid , reason )

{

        Mspawn(playerid);

SendDeathMessage ( killerid , playerid , reason ) ;

PlayerInfo [ playerid ] [ Deaths ] ++;

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

{

    PlayerInfo [ killerid ] [ Kills ] ++;

    PlayerInfo [ killerid ] [ Coins ] ++;

    new cash = 100 + random ( 500 ) ;

    GivePlayerMoney ( killerid , cash ) ;

}

return 1;

}[/pawn]

Link to comment
Share on other sites

[pawn]

public OnPlayerDeath ( playerid , killerid , reason )

{

    if(DM[playerid] == 1 && mDM[playerid] == 1) return Mspawn(playerid);

SendDeathMessage ( killerid , playerid , reason ) ;

PlayerInfo [ playerid ] [ Deaths ] ++;

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

{

    PlayerInfo [ killerid ] [ Kills ] ++;

    PlayerInfo [ killerid ] [ Coins ] ++;

    new cash = 100 + random ( 500 ) ;

    GivePlayerMoney ( killerid , cash ) ;

}

return 1;

}[/pawn]

posteaza [pawn]public Mspawn[/pawn]

Rate me :)

Link to comment
Share on other sites

[pawn]public Mspawn ( playerid )

{

    new rand = random ( sizeof ( MSpawn ) ) ;

    SetPlayerPos ( playerid , MSpawn [ rand ] [ 0 ] , MSpawn [ rand ] [ 1 ] , MSpawn [ rand ] [ 2 ] ) ;

    GivePlayerWeapon ( playerid , 38 , 1000000 ) ;

    return 1;

}[/pawn]

--------------

[pawn]new Float:MSpawn [ 4 ] [ 0 ] =

{

{2788.6416 , -2425.9883 , 13.0083} ,

{2782.4412 , -2454.2209 , 13.0652} ,

{2788.2957 , -2501.9504 , 13.2560} ,

{2707.3738 , -2480.8684 , 27.4409}

};[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.