DonSpeed:admins(playerid,params[])
{
new Speed[250];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, Name, sizeof(Name));
if(Jogador[i][pAdmin] > 1){
format(Speed,sizeof(Speed)," %d Administrador Level 1\n", Name); }
if(Jogador[i][pAdmin] > 2){
format(Speed,sizeof(Speed)," %d Administrador Level 2\n", Name); }
if(Jogador[i][pAdmin] > 3){
format(Speed,sizeof(Speed)," %d Administrador Level 3\n", Name); }
if(Jogador[i][pAdmin] > 4){
format(Speed,sizeof(Speed)," %d Administrador Level 4\n", Name); }
if(Jogador[i][pAdmin] > 5){
format(Speed,sizeof(Speed)," %d Fundador/Script\n", Name); }
}
ShowPlayerDialog(playerid, DialogADM, DIALOG_STYLE_MSGBOX, "Administradores", Speed, "Fechar", "");
}
return 1;
}
DonSpeed:destruircarros(playerid, params[])
{
new IDC;
GetPlayerName(playerid, Name, sizeof(Name));
if(Jogador[playerid][pAdmin] <= 1) return SendClientMessage(playerid, -1,"[ERRO] Voce Nao Tem Level de Admin Suficiente");
format(don,sizeof(don),"{FF0000}[PlayHard]{FFFFFF}O Admin {FF0000}%s{FFFFFF}({FF0000}ID:%d{FFFFFF}) Destruiu Todos os{FF0000} Veiculos Criados{FFFFFF}.", Name, playerid);
SendClientMessageToAll(-1,don);
DestroyVehicle(IDC);
return 1;
}
DonSpeed:admins(playerid,params[])
{
new Speed[250];
new _val[250];
new pname[24];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, pname, 24));
if(Jogador[i][pAdmin] == 1) format(Speed,sizeof(Speed)," %d Administrador Level 1\n", pname);
strcat(_val, Speed);
if(Jogador[i][pAdmin] == 2) format(Speed,sizeof(Speed)," %d Administrador Level 2\n", pname);
strcat(_val, Speed);
if(Jogador[i][pAdmin] == 3) format(Speed,sizeof(Speed)," %d Administrador Level 3\n", pname);
strcat(_val, Speed);
if(Jogador[i][pAdmin] == 4) format(Speed,sizeof(Speed)," %d Administrador Level 4\n", pname);
strcat(_val, Speed);
if(Jogador[i][pAdmin] == 5) format(Speed,sizeof(Speed)," %d Fundador/Script\n", pname);
strcat(_val, Speed);
}
ShowPlayerDialog(playerid, DialogADM, DIALOG_STYLE_MSGBOX, "Administradores", _val, "Fechar", "");
}
return 1;
}
new IDC = GetPlayerVehicleID(playerid);
DonSpeed:carro(playerid,params[])
{
new carro, IDC, Float:X, Float:Y, Float:Z, Float:FA;
GetPlayerName(playerid, Name, sizeof(Name));
if(sscanf(params, "d", carro)) return SendClientMessage(playerid, -1, "Use: {FF230A}/carro [Modelo]");
if(400 < (carro) > 611) return SendClientMessage(playerid, -1, "O modelo tem que ser entre 400 e 611");
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, FA);
IDC = CreateVehicle(carro, X, Y, Z+2, FA, 0, 0, 25000);
PutPlayerInVehicle(playerid, IDC, 0);
format(don,sizeof(don),"{FF0000}[PlayHard]{FFFFFF}O Player {FF0000}%s{FFFFFF}({FF0000}ID:%d{FFFFFF}) Criou um Carro({FF0000}/carro{FFFFFF}).", Name, playerid);
SendClientMessageToAll(-1,don);
return 1;
}
DonSpeed:destruircarros(playerid, params[])
{
new IDC = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, Name, sizeof(Name));
if(Jogador[playerid][pAdmin] <= 1) return SendClientMessage(playerid, -1,"[ERRO] Voce Nao Tem Level de Admin Suficiente");
format(don,sizeof(don),"{FF0000}[PlayHard]{FFFFFF}O Admin {FF0000}%s{FFFFFF}({FF0000}ID:%d{FFFFFF}) Destruiu Todos os{FF0000} Veiculos Criados{FFFFFF}.", Name, playerid);
SendClientMessageToAll(-1,don);
DestroyVehicle(IDC);
return 1;
}
DonSpeed:admins(playerid,params[])
{
new Speed[250];
for(new i, j = GetMaxPlayers(); i != j; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, Name, sizeof(Name));
if(Jogador[i][pAdmin] == 1)
format(Speed,sizeof(Speed),"%s %s Administrador Level 1\n",Speed, Name);
if(Jogador[i][pAdmin] == 2)
format(Speed,sizeof(Speed),"%s %s Administrador Level 2\n",Speed, Name);
if(Jogador[i][pAdmin] == 3)
format(Speed,sizeof(Speed),"%s %s Administrador Level 3\n",Speed, Name);
if(Jogador[i][pAdmin] == 4)
format(Speed,sizeof(Speed),"%s %s Administrador Level 4\n",Speed, Name);
if(Jogador[i][pAdmin] == 5)
format(Speed,sizeof(Speed),"%s %s Fundador/Script\n",Speed, Name);
}
ShowPlayerDialog(playerid, DialogADM, DIALOG_STYLE_MSGBOX, "Administradores", Speed, "Fechar", "");
}
return 1;
}
DonSpeed:admins ( playerid , params [ ] ) {
new
_infostr [ 70 ] ,
_strcat [ 250 ] ,
_adminlevel [ 30 ] ,
_name [ MAX_PLAYER_NAME ]
;
for ( new i ; i != GetMaxPlayers ( ) ; ++i ) {
if ( !IsPlayerConnected ( i ) || Jogador [ i ] [ pAdmin ] < 1 )
continue ;
GetPlayerName ( i , _name , sizeof _name ) ;
switch ( Jogador [ i ] [ pAdmin ] ) {
case 5: _adminlevel = "Fundador/Script" ;
default: format ( _adminlevel , sizeof _adminlevel , "Administrador Level %i" , Jogador [ i ] [ pAdmin ] ) ;
}
format ( _infostr , sizeof _infostr , " %s %s\n" , _name , _adminlevel ) ;
strcat ( _strcat , _infostr ) ;
}
ShowPlayerDialog ( playerid, DialogADM , 0 , "Administradores" , _strcat , "Fechar" , "" ) ;
return 1 ;
}
//Topo
new IDC ;
//Comando de criar
IDC = CreateVehicle ( ... ) ;
//Comando de destruir
DestroyVehicle ( IDC ) ;
do Vini deu mas Ta Mostrando Don_Speed Em Todos os Leveis de Admins
|