31.12.2017, 14:06
All I have done is created three functions in my mapping include, see below:
And then in the main gamemode script under OnGameModeInit I call LoadMapping(), and under OnPlayerConnect I call RemoveBuildings(playerid) and LoadDynamicMapping(playerid).
Код:
stock RemoveBuildings(playerid) { // Mapping here printf("[mapping.inc] Removed Buildings for playerid %d.", playerid); return 1; } stock LoadMapping() { // Mapping here print("[mapping.inc] Loaded Mapping"); return 1; } stock LoadDynamicMapping(playerid) { // Mapping here printf("[mapping.inc] Loaded Dynamic Mapping for playerid %d.", playerid); return 1; }