Comando - EXPEDITO_011 - 26/10/2021
O comando fica como não existe mas quando executo ele executa a função dele
Código: CMD:criarv(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, ERRO_COR, SemAutorizacao);
new Float:x, Float:y, Float:z;
new idveiculooo = CreateVehicle(idveiculooo, x, y, z, 0.0, 0, 0);
GetPlayerPos(playerid, x, y, z);
if(sscanf(params, "ddd", idveiculooo)) return SendClientMessage(playerid, VERDE, "[INFO]Use: /criarv [ID CARRO]");
return 0;
}
RE: Comando - ProKillerPa - 26/10/2021
Seu comando tá bem errado, veja o correto:
Código PHP: CMD:criarv(playerid, params[]){
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, ERRO_COR, SemAutorizacao);
new idveiculooo;
if(sscanf(params, "d", idveiculooo)) return SendClientMessage(playerid, VERDE, "[INFO]Use: /criarv [ID CARRO]");
if(idveiculooo > 611 || idveiculooo < 400) return 1; // id invalido de veiculo
new Float:PQP[3];
GetPlayerPos(playerid, PQP[0], PQP[1], PQP[2]);
CreateVehicle(idveiculooo, PQP[0], PQP[1], PQP[2], 0.0, 0, 0, 0); return 1; }
RE: Comando - EXPEDITO_011 - 26/10/2021
Vlwwww
RE: Comando - MrThúúG - 28/10/2021
(26/10/2021 19:44)EXPEDITO_011 Escreveu: Vlwwww
Código PHP: CMD:cv(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 4) { new car, COLOR1, COLOR2; if(sscanf(params, "ddd", car, COLOR1, COLOR2)) { SendClientMessage(playerid, COLOR_GRAD2, "USE: /cv [IDCARRO] [COR1] [COR2]"); return true; } new string[128]; if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, " Modelo Do Carro Tem Que Ser Entre 411 e 600 !"); return true; } if(COLOR1 < 0 || COLOR1 > 236) { SendClientMessage(playerid, COLOR_GREY, " Número Da Cor tem que ser entre 0 e 126 !"); return true; } if(COLOR2 < 0 || COLOR2 > 236) { SendClientMessage(playerid, COLOR_GREY, " Número Da Cor tem que ser entre 0 e 126 !"); return true; } new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z); new carid = CreateVehicle(car, X,Y+2,Z, 0.0, COLOR1, COLOR2, 60000); PutPlayerInVehicle(playerid, carid, 0); } return true; }
|