14.04.2013, 04:23
(
Последний раз редактировалось GustavinCTN; 15.04.2013 в 02:57.
)
Jб consegui jб.
CMD:apagarcarro(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new carid;
new string[128];
if(sscanf(params, "d", carid)) return SendClientMessage(playerid, INFO,"[ USO: ] /apagarcarro [id do carro]");
format(string, sizeof(string), "Apagaste o carro com o id %d.", carid);
SendClientMessage(playerid, INFO, string);
DestroyVehicle(carid);
}
else
{
SendClientMessage(playerid, FAIL, "[ ERRO: ] Tu nгo йs Administrador.");
}
return 1;
}
if (strcmp(cmd, "/dcv", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pVip] >= 1)
{
for (new i = 0; i <= MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (VehLimite[i] >= 1)
{
DestroyVehicle(VehLimite[i]);
VehLimite[i] = 0;
}
}
}
SendClientMessage(playerid, COR_ERRO, "Veнculo Deletado!");
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo para usar este comando!");
return 1;
}
return 1;
}