05.05.2013, 21:16
PHP код:
CMD:tapa(playerid, params[])
{
static xRL[144], NomeDoAdm[40], NomeDoTapado[40], Float:X, Float:Y, Float:Z;
if ( !xPlayerInfo[playerid][xAdmin]) return SendClientMessage(playerid, xBranco, "{ff0000}» {ffffff}Vocк nгo й um administrador.");
if ( isnull ( params ) )
return SendClientMessage(playerid, xBranco, "{ff0000}» {ffffff}Use: /tapa [ID ou Nome].");
if(!IsPlayerConnected ( strval ( params ) ) )
return SendClientMessage(playerid, xBranco, "{ff0000}» {ffffff}Nenhuma pessoa online com esse ID/Nome.");
GetPlayerName(playerid, NomeDoAdm,sizeof(NomeDoAdm));
GetPlayerName ( strval ( params ), NomeDoTapado, sizeof ( NomeDoTapado ) ) ;
format(xRL,sizeof(xRL), "Vocк deu um tapa no {4294FF}%s{ffffff}.", NomeDoTapado);
SendClientMessage(playerid, xBranco, xRL);
format(xRL,sizeof(xRL), "{858585}[Palomino] {ffffff}O administrador {4294FF}%s {ffffff}lhe deu um tapa.", NomeDoAdm);
SendClientMessage ( strval ( params ), xCinzaEscuro, xRL);
GetPlayerPos ( strval ( params ), X, Y, Z ) ;
SetPlayerInterior( strval ( params ), GetPlayerInterior ( strval ( params ) ) ) ;
SetPlayerPos ( strval ( params ), X, Y, Z +50);
return true;
}
PHP код:
CMD:trazer(playerid, params[])
{
static NomePlayer[20], NomeDoAdm[20], xRL[144], Float:X, Float:Y, Float:Z;
if(!xPlayerInfo[playerid][xAdmin]) return SendClientMessage(playerid, xBranco, "{ff0000}» {ffffff}Vocк nгo й um administrador." ) ;
if( isnull ( params ) )
return SendClientMessage(playerid, xBranco, "{ff0000}» {ffffff}Use: /trazer [id]");
GetPlayerName ( playerid, NomeDoAdm, 20 ) ;
GetPlayerName ( strval ( params ), NomePlayer, 20 ) ;
GetPlayerPos ( playerid, X, Y, Z ) ;
SetPlayerPos ( strval ( params ), X, Y, Z ) ;
format ( xRL,sizeof ( xRL ), "{858585}[Palomino] {ffffff} O admin %s, trouxe vocк atй ele.", NomeDoAdm );
SendClientMessage ( strval ( params ), xCinzaEscuro, xRL);
format ( xRL, sizeof ( xRL ), "{858585}[Palomino] {ffffff}Vocк trouxe o player {4294FF}%s", NomePlayer ) ;
SendClientMessage ( playerid, xCinzaEscuro, xRL ) ;
return true;
}

