Small and maybe useful things for a SA:MP Server
public OnPlayerVehicleHealthChange(playerid, vehicleid, Float:newhealth, Float:oldhealth);
public OnPlayerPause(playerid);
public OnPlayerUnPause(playerid);
native IsPlayerPaused(playerid);
#include <Anti_Pause>
public OnPlayerPause(playerid)
{
new name[MAX_PLAYER_NAME], string[64];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s pressed esc.",name);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
public OnPlayerUnPause(playerid)
{
new name[MAX_PLAYER_NAME], string[64];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s unpaused.",name);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
If you have issues with errors or you just don't wanna use y_hooks for anti_pause.inc then use anti_pause2.inc Do note you have to add these functions to the right callbacks:
native P_OnPlayerConnect(playerid);
native P_OnPlayerUpdate(playerid);
native P_OnPlayerRequestClass(playerid);
native P_OnPlayerDisconnect(playerid);
native P_OnPlayerSpawn(playerid);
This is a webpage where u can mass move a mta map. Select a .map file, fill in the offsets and it will change all the positions from the original map to +offset. Afterwards you get the converted .map file back as download.
Demo: Here