CMD:criarveiculo(playerid, params[])
{
new idveiculo, cor1, cor2, Float: Pos[4];
if(pInfo[playerid][Admin]>=4)
if(pInfo[playerid][Admin]>=5)
if(pInfo[playerid][Admin]>=6)
if( !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FF0000}| ERRO | Vocк Nгo й Staff Do Servidor.");
if( sscanf( params, "ddd", idveiculo, cor1, cor2)) return SendClientMessage(playerid, -1, "{FF0000}| ERRO | Use: /cvadm [ID DO VEICULO] [COR1][COR2]");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
GetPlayerFacingAngle(playerid, Pos[3]);
carrao[playerid] = CreateVehicle(idveiculo, Pos[0], Pos[1], Pos[2], Pos[3], cor1, cor2, 9999);
SendClientMessage(playerid, -1, "{EFFF00}| CLS-ADMIN | Veiculo Criado com Sucesso!.");
return 1;
}
//____________________________________________________________________________//
CMD:removerveiculos(playerid)
{
if(pInfo[playerid][Admin]>=4)
if(pInfo[playerid][Admin]>=5)
if(pInfo[playerid][Admin]>=6)
for(new idveiculo = 0; idveiculo < MAX_VEHICLES; idveiculo++){
if( !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "{FF0000}| ERRO | Vocк Nгo й Staff Do Servidor.");
DestroyVehicle(idveiculo);}
SendClientMessage(playerid, -1, "{EFFF00}| CLS-ADMIN | Todos os veiculos que vocк criou foram removidos.");
return 1;
}
//____________________________________________________________________________//
CMD:lc(playerid)
{
if(pInfo[playerid][Admin]>=1)
if(pInfo[playerid][Admin]>=2)
if(pInfo[playerid][Admin]>=3)
if(pInfo[playerid][Admin]>=4)
if(pInfo[playerid][Admin]>=5)
if(pInfo[playerid][Admin]>=6)
if(pInfo[playerid][Admin]>=7)
if(pInfo[playerid][Admin]>=5)
for(new i = 0; i < 420; i++)
SendClientMessage(playerid, -1, " ");
return 1;
}
if(pInfo[playerid][Admin]>=1)
CMD:lc(playerid)
{
if(pInfo[playerid][Admin]>=1)
{
for(new i = 0; i < 420; i++)
SendClientMessage(playerid, -1, " ");
return 1;
}
}
>= й igual ou maior, nгo й necessбrio colocar essas condiзхes para todos os nнveis.
PHP код:
Exemplo de comando: PHP код:
|