23.02.2012, 18:08
pawn Код:
CMD:mc( playerid, params[ ] )
{
new Str_mission[ 32 ], Str_maffia[ 32 ], Str_overloaded[ 32 ], msg[ 128 ], targetplayer;
if( sscanf( params, "r", targetplayer )) return SendClientMessage( playerid, 0xFFFFFFFF, "[USAGE]: /mc [id]" );
if( APlayerData[ targetplayer ][ JobStarted ] == true ) format( Str_mission, sizeof( Str_mission ), "On a mission: {66FF00}Yes" );
else format( Str_mission, sizeof( Str_mission ), "On a mission: {FF0000}No" );
if( APlayerData[ targetplayer ][ MafiaLoad ] == true ) format( Str_maffia, sizeof( Str_maffia ), "Maffia load: {66FF00}Yes" );
else format( Str_maffia, sizeof( Str_maffia ), "Maffia load: {FF0000}No" );
if( APlayerData[ targetplayer ][ Overloaded ] == true ) format( Str_overloaded, sizeof( Str_overloaded ), "Overloaded: {66FF00}Yes" );
else format( Str_overloaded, sizeof( Str_overloaded ), "Overloaded: {FF0000}No" );
strcat( msg, "Player Checks:" );
strcat( msg, Str_mission );
strcat( msg, Str_maffia );
strcat( msg, Str_overloaded );
SendClientMessage( playerid, 0xFFFFFFFF, msg );
return 1;
}