Author Topic: !wep z ing gre  (Read 1060 times)

0 Members and 1 Guest are viewing this topic.

Offline [NYB]fast:p

  • Street Thug
  • *
  • Posts: 28
    • View Profile
!wep z ing gre
« on: July 24, 2014, 11:34:02 am »
[pawn][pawn]
Code: [Select]
else if (strcmp(cmd, "!wep", true) == 0 || strcmp(cmd, "!we", true) == 0 || strcmp(cmd, "!arma", true) == 0)
{
    new  tmp3[ 256 ], tmp4[ 256 ], tmp5[ 256 ], tmp2[256];
    tmp = strtok( cmdtext, idx ), tmp2 = strtok( cmdtext, idx ), tmp3 = strtok( cmdtext, idx ), tmp4 = strtok( cmdtext, idx ), tmp5 = strtok( cmdtext, idx );
        if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "Escrive: !wep [Arma1] [Arma2] [Arma3] [Arma4] [Arma5]" );
else
{
                new wep[6];
                if( !strlen( tmp2 ) )
                {
                wep[1] = FindWepIDFromString( tmp );
                SetPlayerWeapon(playerid, wep[1], 9999 );
               
    }
                 
                else if( !strlen( tmp3 ) )
                {
                wep[1] = FindWepIDFromString( tmp );
                SetPlayerWeapon(playerid, wep[1], 9999 );
                wep[2] = FindWepIDFromString( tmp2 );
                SetPlayerWeapon(playerid, wep[2], 9999 );

    }
                else if( !strlen( tmp4 ) )
                {
                wep[1] = FindWepIDFromString( tmp );
                SetPlayerWeapon(playerid, wep[1], 9999 );
                wep[2] = FindWepIDFromString( tmp2 );
                SetPlayerWeapon(playerid, wep[2], 9999 );
                wep[3] = FindWepIDFromString( tmp3 );
                SetPlayerWeapon(playerid, wep[3], 9999 );

    }
                else if( !strlen( tmp5 ) )
                {
                wep[1] = FindWepIDFromString( tmp );
                SetPlayerWeapon(playerid, wep[1], 9999 );
                wep[2] = FindWepIDFromString( tmp2 );
                SetPlayerWeapon(playerid, wep[2], 9999 );
                wep[3] = FindWepIDFromString( tmp3 );
                SetPlayerWeapon(playerid, wep[3], 9999 );
                wep[4] = FindWepIDFromString( tmp4 );
                SetPlayerWeapon(playerid, wep[4], 9999 );

}
                else if( strlen( tmp5 ) )
                {
                wep[1] = FindWepIDFromString( tmp );
                SetPlayerWeapon(playerid, wep[1], 9999 );
                wep[2] = FindWepIDFromString( tmp2 );
                SetPlayerWeapon(playerid, wep[2], 9999 );
                wep[3] = FindWepIDFromString( tmp3 );
                SetPlayerWeapon(playerid, wep[3], 9999 );
                wep[4] = FindWepIDFromString( tmp4 );
                SetPlayerWeapon(playerid, wep[4], 9999 );
                wep[5] = FindWepIDFromString( tmp5 );
                SetPlayerWeapon(playerid, wep[5], 9999 );

}

if(( wep[1] == 33) || ( wep[2] == 33) || ( wep[3] == 33) || ( wep[4] == 33) || ( wep[5] == 33 ))
{
                        SetPlayerWeapon(playerid,0,0);
SendClientMessage(playerid,COLOR_GREEN,"Error: Miniguns are not allowed.");
}

}

return 1;
}[/pawn]
[color=purple][size=8pt]My Server Forum:www.nybsr.createaforum.com[/size][/color]
« Last Edit: August 08, 2014, 06:02:25 pm by [NYB]fast:p »