31.08.2010, 00:37
Hold up, lemme try that ![Tongue](images/smilies/razz.gif)
Edit: Thanks Sir, I should take my time from now on lol
Edit2: Lets conserver space, let me ask my second problem:
When i do /respawnallcars it says.
It respawns all cars but it says that message, how do i fix that?
Edit3: This is the command if its needed
![Tongue](images/smilies/razz.gif)
Edit: Thanks Sir, I should take my time from now on lol
Edit2: Lets conserver space, let me ask my second problem:
When i do /respawnallcars it says.
pawn Код:
Server: Unknown Command
Edit3: This is the command if its needed
pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/carreset", true) == 0) // by LordMan
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, "** you are not authorized to use that command!");
return 1;
}
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
}
for(new car = 1; car <= 1850; car++)
{
if(!unwanted[car]) SetVehicleToRespawn(car);
}
format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername);
BroadCast(COLOR_WHITE,string);
format(string, sizeof(string), "[ADMIN]: %s has Respawned All Cars.", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
GameTextForAll("~w~Every Unused Car ~n~~g~Respawned!",5000,1);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Respawned All Unused Cars",d,m,y,h,mi,s,sendername);
AdminLog(string);
}
return 1;
}