08.08.2013, 20:47
pawn Код:
if(strcmp(cmd, "/apagartodososcarros", true) == 0)
{
if(PlayerInfo[playerid][Dono] == 4)
return SendClientMessage(playerid, COLOR_RED, "Isso querias tu");
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][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();
return 1;
}
pawn Код:
if(PlayerInfo[playerid][Dono] != 4)