07.04.2012, 18:15
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);
}