- 0
Comanda mute
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Sle|D
<-- Nick
Problema: nu merge..
Erori / warnings: niciuna
Lini/script: mai jos
Ai incercat sa rezolvi singur ?: da oare sa fie parametri uiS? eu am vrut sa foloses de la functia jail are timer de 1 secunda dar mai are si alceva si mai bine schimb si dupa ce trece sa fac sa apara un mesaj.
[pawn]CMD:mute( playerid, params[ ] )
{
LevelCheck( playerid, 6 );
new
Player,
liTime,
Reason[ 80 ]
;
if ( sscanf( params, "udS(no reason)[80]", Player, liTime, Reason ) )
return SendClientMessage( playerid, COLOR_RED, "Scrie: /mute [PlayerID] [Minute] [Motiv]" );
if ( !IsPlayerConnected( Player ) && Player == INVALID_PLAYER_ID )
return SendError( playerid, "Jucatorul nu este conectat!" );
if ( PlayerInfo[ Player ][ Muted ] == 1 )
return SendError( playerid, "Jucatorul este deja mut" );
PlayerInfo[ playerid ][ PMutes ]++;
PlayerPlaySound( Player, 1057, 0.0, 0.0, 0.0 );
PlayerInfo[ Player ][ Muted ] = 1;
PlayerInfo[ Player ][ MuteWarnings ] = 0;
SetTimerEx( "ShowJailLeftTime", 1000, 0, "i", Player );
gTime[ Player ][ 0 ] = liTime-1;
gTime[ Player ][ 1 ] = 60;
FormatMSG( Player, COLOR_BLABLA, "Ai primit mute de la Administratorul %s timp de [%d min] [Motiv: %s]", PlayerName( playerid ), liTime, Reason );
FormatMSG( playerid, COLOR_BLABLA, "I-ai dat mute lui %s timp de [%d min] si [Motiv: %s]", PlayerName( Player ), liTime, Reason );
return ( 1 );
}[/pawn]
15 answers to this question
Recommended Posts