22.07.2013, 10:27
pawn Код:
CMD:w(playerid, params[])
{
new Fast_[128], Id_, string_[200];
if(sscanf(params, "us[128]", Id_, Fast_)) return SendClientMessage(playerid, COLOR_GRAD2, "/w [id] [texto]");
new Name_[24];
if(!IsPlayerConnected( Id_ ))
return SendClientMessage(playerid, COLOR_GRAD2, "Jugador no conectado");
if( Info[ Id_ ][pAdminZC] >= 1 )
{
GetPlayerName( Id_, Name_, sizeof Name_);
format( string_, sizeof string_, "Mensaje de de %s (%d): %s", Name_, playerid, Fast_);
SendClientMessage( Id_, 0xDBDE50FF, string_);
GetPlayerName( playerid, Name_, sizeof Name_);
format( string_, sizeof string_, "Mensaje a %s (%d): %s", Name_, params[0], Fast_);
SendClientMessage(playerid, 0xDBDE50FF, string_);
}else return SendClientMessage(playerid, COLOR_GRAD2, "Jugador no es administrador");
return 1;
}