04.03.2018, 11:32
When you move the house, the pickup and the icon (on the map) are transferred, but the pickup and icon on the old positions remain. Help me decide.
The pickup and icon change position during further transfers, but the initial position of pickups and icons (which is indicated at loading (houses / gamemode) - is not deleted.
Ongamemodeinit :
PHP код:
DestroyDynamicMapIcon(hl[idx][hM]);
DestroyDynamicPickup(hl[idx][hP]);
Ongamemodeinit :
PHP код:
hl[idx][hP] = AddStaticPickup(hl[idx][hPickup], 0, hl[idx][hEnterx], hl[idx][hEntery], hl[idx][hEnterz]);
hl[idx][hM] = CreateDynamicMapIcon(hl[idx][hEnterx],hl[idx][hEntery],hl[idx][hEnterz],hl[idx][hMapIcon],-1,-1,-1,-1,200.0);