08.08.2013, 22:06
Ja to desesperado,desde de manha que ando a volta disto! Eu sou dono nivel 4,para comeзar
este comando funciona se o fizer... mas se estiver assim
jб nгo funciona...diz que nгo posso fazer o comando. Isto й sу o comeзo,o meu problema nгo estб neste comando,mas sim neste!
Pois sou dono nivel 4 e nгo consigo fazer este comando /resetallvehicles,jб tentei meter
Sу que nahora de fazer o cmd diz "SERVEr:Unknow Command"
pawn Код:
if(strcmp(cmd, "/masscarmodelrandom", true) == 0)
{
if(PlayerInfo[playerid][Dono] == 0)
return SendClientMessage(playerid, COLOR_RED, "Nгo pds fazer este cmd");
new i;
for(; i < sizeof(DynamicCars); i++)
{
new rand = random(sizeof(RandomStableModels));
DynamicCars[i][CarModel] = RandomStableModels[rand][0];
DestroyVehicle(i);
CreateVehicle(DynamicCars[i][CarModel],DynamicCars[i][CarX],DynamicCars[i][CarY],DynamicCars[i][CarZ],DynamicCars[i][CarAngle],DynamicCars[i][CarColor1],DynamicCars[i][CarColor2], -1);
Fuel[i] = GasMax;
EngineStatus[i] = 0;
VehicleLocked[i] = 0;
CarWindowStatus[i] = 1; //1 = up, 0 = down.
}
SaveDynamicCars();
return 1;
}
pawn Код:
if(PlayerInfo[playerid][Dono] == 4)
pawn Код:
if(strcmp(cmd, "/resetallvehicles", true) == 0)
{
if(PlayerInfo[playerid][Dono] == 4)
return SendClientMessage(playerid, COLOR_RED, "Nao pds fazer este cmd");
new i,Float:distance = 6.0, Float:metres = distance;
for(; i < sizeof(DynamicCars); i++, metres += distance)
{
GetPlayerPos(playerid, DynamicCars[i][CarX], DynamicCars[i][CarY], DynamicCars[i][CarZ]);
new Float:a;
GetPlayerFacingAngle(playerid, a);
DynamicCars[i][CarColor1] = 1;
DynamicCars[i][CarColor2] = 1;
DynamicCars[i][FactionCar] = 255;
DynamicCars[i][CarType] = 0;
DynamicCars[i][CarAngle] = a;
DynamicCars[i][CarX] += (metres * floatsin(-a, degrees));
DynamicCars[i][CarY] += (metres * floatcos(-a, degrees));
DynamicCars[i][Neon] = 0;
DynamicCars[i][cPaintjob] = 999;
ClearVehicleComponents(i);
DestroyVehicle(i);
CreateVehicle(DynamicCars[i][CarModel],DynamicCars[i][CarX],DynamicCars[i][CarY],DynamicCars[i][CarZ],DynamicCars[i][CarAngle],DynamicCars[i][CarColor1],DynamicCars[i][CarColor2], -1);
Fuel[i] = GasMax;
EngineStatus[i] = 0;
VehicleLocked[i] = 0;
SaveVehicleComponents(i);
}
SaveDynamicCars();
return 1;
}
pawn Код:
if(PlayerInfo[playerid][Dono] != 4)