Disable weapon effect?
#1

pawn Код:
//Other code here
if ( issuerid != INVALID_PLAYER_ID )
    {
        if ( GetPlayerWeapon( issuerid ) == 23 )
        {
            new string[50], Attacker[MAX_PLAYER_NAME], pzName[MAX_PLAYER_NAME];
            GetPlayerName( issuerid, Attacker, sizeof(Attacker) );
            GetPlayerName( playerid, pzName, MAX_PLAYER_NAME );
            format( string, sizeof(string), "(INFO) Officer %s has tazed you.", Attacker );
            SendClientMessage( playerid, COLOR_GOLD, string );
            format( string, sizeof(string), "(INFO) You have tazed %s.", pzName );
            SendClientMessage( issuerid, COLOR_GOLD, string );
            GameTextForPlayer(playerid,"~p~Tazed",3000,4);
            TogglePlayerControllable( playerid, 0 );
        }
   }
    return(1);
}
This is my tazer system. But the silenced pistol still "remove" health to the issued. I would like it can taze but it has no effect to the player/car health...Just TogglePlayerControllable...
Reply


Messages In This Thread
Disable weapon effect? - by Gooday - 07.04.2012, 18:15
Re: Disable weapon effect? - by JonesyFoCoTDM - 07.04.2012, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)