09.08.2013, 01:35
ae tem
pawn Код:
if(strcmp(cmd, "/apagartodososcarros", true) == 0)
{
if(PlayerInfo[playerid][Dono] == 4)
{
new i,
Float:distance = 6.0,
Float:metres = distance,
Float:a;
for(; i < sizeof(DynamicCars); i++, metres += distance)
{
GetPlayerPos(playerid, DynamicCars[i][CarX], DynamicCars[i][CarY], DynamicCars[i][CarZ]);
GetPlayerFacingAngle(playerid, a);
DynamicCars[i][CarColor1] = 1;
DynamicCars[i][CarColor2] = 1;
DynamicCars[i][CarAngle] = a;
DynamicCars[i][CarModel] = 400;
DynamicCars[i][CarX] += (metres * floatsin(-a, degrees));
DynamicCars[i][CarY] += (metres * floatcos(-a, degrees));
DynamicCars[i][Neon] = 0;
Fuel[i] = 100;
EngineStatus[i] = 0;
CarWindowStatus[i] = 1; //1 = up, 0 = down.
}
SaveCars();
}
else return SendClientMessage(playerid, COLOR_RED, "Isso querias tu filho");
return 1;
}