SA-MP Forums Archive
IDK wheather this can be scripted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IDK wheather this can be scripted (/showthread.php?tid=347641)



IDK wheather this can be scripted - ss2119 - 02.06.2012

Hey guys i thought of a command call /warplan in which players can see the Sa map can edit to what ever base thever have like area 51/69 in that they will make an war plan like when we press t in map a icon comes like that when players press t a icon comes they can make many icons and to remove them click t on them and /sendplan to send their plan and /accplan to accept it and /decplan to decline it


Re: IDK wheather this can be scripted - MP2 - 02.06.2012

First of all, read this: http://*******/L8uXqA

Second of all, due to the link above, I don't understand exactly what you want. Allow me to attempt to clarify:

You want the player's camera to view the San Andreas map that is in the Area 69 map room, and allow them to place icons on the map?

For that you need to set the player's camera with SetPlayerCameraPos and SetPlayerCameraLookAt, you'll need to use GetPlayerKeys in OnPlayerUpdate to detect the movement, and OnPlayerKeyStateChange to detect the key for placing/removing a marker.

You'll need to use objects for the markers, these are the 'mapicon' objects: https://sampwiki.blast.hk/wiki/Samp_objects search that page (Ctrl+F) for 'MapMarker'.

Good luck, it's not the easiest of things you're trying to do. If you a beginner you should ask someone to help you fully, i.e. over teamviewer/MSN/skype/whatever.

EDIT: Or instead of viewing the area 69 map, do you want the map to appear as an on-screen sprite? You'll have to use textdraws for that.


- ss2119 - 03.06.2012

Thnx but i need help

there a maps comes and a player makes come icons like gun and + gun for shooter and + for medic where they will be and etc

And If i FInish This Work I will Add this FS in SAmp Frums

And For what map marker?


Re: IDK wheather this can be scripted - Azazelo - 03.06.2012

May be this can be done on object with texture of gta map. Then with some math function converted to real map.

Just a mumbling.


Re: IDK wheather this can be scripted - ss2119 - 03.06.2012

I need someone to help Who can?