06.12.2014, 23:52
Some code i share today is for an admin online in server, who can clear the chat when someone server ads in public chat
, if will clear all chat in the server but in server_log.txt if wont clear.
Please rep if this thing is good
Make sure you have all funtion in your gamemodes, just add the cmd to your gm and compile it. But if you smart, you can edit if with your admin's rank to use
And this is anti car warp- This useful when someone use hack car in your server, you can use it to respawn all vehicle available in server, it will lag when you type this command in 3s

Please rep if this thing is good
PHP код:
CMD:clearchat(playerid, params[])
{
for(new i = 0; i < 100; i++)
{
SendClientMessageToAll(-1, " ");
}
}
return 1;
}
And this is anti car warp- This useful when someone use hack car in your server, you can use it to respawn all vehicle available in server, it will lag when you type this command in 3s

PHP код:
CMD:rac(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new bool:unwanted[MAX_VEHICLES];
for(new player=0; player < MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player))
{
unwanted[GetPlayerVehicleID(player)] = true;
}
}
for(new veh = 0; veh < MAX_VEHICLES; veh++)
{
if(!unwanted[veh])
{
SetVehicleToRespawn(veh);
}
}
SendClientMessageEx(playerid, COLOR_LIGHTRED, "You have respawned all vehicle in server.");
}
return 1;
}