COMMAND:resetarveiculos(playerid, params[]) { if (APlayerData[playerid][LoggedIn] == true) { if (APlayerData[playerid][pAdmin] >= 3) { SendClientMessageToAll(0x00FF00FF, "{a9c4e4}O Administrador resetou veiculos"); for(new i=0; i<MAX_VEHICLES; i++) { #define VehicleOccupied(i) { SetVehicleToRespawn(i); } } } else return 0; } else return 0; return 1; } |
COMMAND:resetarveiculos(playerid, params[])
{
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][pAdmin] >= 3)
{
SendClientMessageToAll(0x00FF00FF, "{a9c4e4}O Administrador %s resetou veiculos",PlayerName3(playerid));
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else
return 0;
}
else
return 0;
return 1;
}
stock PlayerName3(playerid)
{
new Name2[MAX_PLAYERS];
GetPlayerName(playerid, Name2, sizeof(Name2));
return Name2;
}
CMD:rc(playerid, params[])
{
iif (APlayerData[playerid][pAdmin] >= 3)
{
new str[128], bool:vehicle[MAX_VEHICLES], AdminName[24];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(str, sizeof(str), "{FFFFFF}O Administrador %s Resetou todos os carros sem uso.", AdminName);
SendClientMessage(playerid, -1, str);
for(new j = 1; GetVehicleModel(j); ++j)
{
vehicle[j] = false;
for(new i, p = GetMaxPlayers(); i < p; ++i)
{
if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i) )
continue;
if(IsPlayerInVehicle(i, j))
{
vehicle[j] = true;
break;
}
}
if(!vehicle[j])
if(!IsTrailerAttachedToVehicle(j))
SetVehicleToRespawn(j);
}
}
else
SendClientMessage(playerid, -1, "{FF0000}Vocк nгo tem permissгo para usar este comando!");
return true;
}
COMMAND:resetarveiculos(playerid, params[])
{
new nome[MAX_PLAYER_NAME], string[50];
GetPlayerName(playerid, nome, sizeof(nome));
if(APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][pAdmin] >= 3)
{
format(string, sizeof(string), "{a9c4e4}O Administrador %s resetou veiculos", nome);
SendClientMessageToAll(0x00FF00FF, string);
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else
return 0;
}
else
return 0;
return 1;
}
COMMAND:resetarveiculos(playerid, params[])
{
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][pAdmin] >= 3)
{
new StringHiu[100];
format(StringHiu,100,"{a9c4e4}O Administrador %s resetou veiculos",NomePlayer(playerid));
SendClientMessageToAll(0x00FF00FF, StringHiu);
for(new i=0; i<MAX_VEHICLES; i++)
{
#define VehicleOccupied(i)
{
SetVehicleToRespawn(i);
}
}
}
else return SendClientMessage(playerid,0x00FF00FF, "Opa amigгo vocк nгo й um admin nivel 3!");
}
return 1;
}
stock NomePlayer(playerid)
{
new Nominho[30];
GetPlayerName(playerid, Nominho, 30);
return Nominho;
}