30.01.2018, 19:29
HI all..
I have my server with 70-80 players on, and i send this command, and server got FREEZE.
This is command:
This is CAR_AMOUNT
I have my server with 70-80 players on, and i send this command, and server got FREEZE.
This is command:
Код:
CMD:respawncars(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_WHITE, "{5CAD5C}Error: Your admin/helper level isn't high enough to use this command.");
for(new i = 1; i < CAR_AMOUNT; i++)
{
SetVehicleToRespawn(i);
}
new string[60];
format(string, sizeof(string), "%s (%d) Respawncars %s %s", PlayerInfo[playerid][pName], playerid, GetDMY(1), GetHMS());
AdminLog(string);
return 1;
}
Код:
#define CAR_AMOUNT 900


