Skip to content

ResendPlayerMap

Sends one player the map again, as at their join.

The player’s game draws the map anew - for a player who says part of it is missing on their screen, without a relog. What stands unchanged on their screen is not made again. The server already does this by itself when a player’s game gives up on the map: up to three times, 20 seconds apart. Once every 10 seconds a player at most; it does not call OnPlayerMapReady again.

ResendPlayerMap(pid)
Parameter Type
pid number the player

boolean - false when the server has no map, the player has not been sent it yet, or it was sent again to them under 10 seconds ago

function OnPlayerCommandText(pid, cmd, args)
if cmd == "fixmap" then
SendClientMessage(pid, COLOR_WHITE, ResendPlayerMap(pid) and "The map is on its way again." or "Try again in a few seconds.")
return true
end
return false
end

OnPlayerMapReady · SetPlayerMapLayer · the The server’s map group of the index