SA-MP Forums Archive
Red Marker - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Red Marker (/showthread.php?tid=93068)



Red Marker - Ironboy500 - 23.08.2009

Can somebody help me to make a red marker in-game, players should stay 10 seconds in-game to VIN.
Thanks.


Re: Red Marker - Ironboy500 - 23.08.2009

well, I did a marker by doing SetPlayerCheckpoint, I copy coordinates from class selection and it show me red marker on wrong place. Please help, here what I did: 1st enter pawno, then enter debug, With CJ I go in the place where i want to put marker and write /save. Than I go into pawno write "SetPlayerMarker and copy coordinates from class selection, put it by SetPlayerMarker. What am I doing wrong? Please help.


Re: Red Marker - Mr_Finnigan - 23.08.2009

AddPlayerClass(118,-2635.3606,1397.4556,7.0938,210.2745, 22, 100, 28, 300, 30, 350);


Only the co-ords in red go in for the

SetPlayerMarker would be SetPlayerMarker (-2635.3606,1397.4556,7.0938,3.5); or something like that


Re: Red Marker - Ironboy500 - 23.08.2009

any why is at the end that 3.5?


Re: Red Marker - Ironboy500 - 23.08.2009

I did it, here is my class selection:
AddPlayerClass(0,-1629.4668,696.9125,48.9375,224.8802,0,0,0,0,0,0); //
and here my Marker:
SetPlayerMarker: (-1629.4668,696.9125,48.9375,3.5)
and I got these warnings:
C:\Documents and Settings\korisnik\Desktop\World war 3\filterscripts\EveningFire.pwn(93) : warning 213: tag mismatch
C:\Documents and Settings\Korisnik\Desktop\World war 3\filterscripts\EveningFire.pwn(93) : warning 202: number of arguments does not match definition

What to do?



Re: Red Marker - Infamous - 23.08.2009

SetPlayerCheckpoint(playerid, 1629.4668, 696.9125, 48.9375, 3.5);

Edit: You will also want to create a timer that is triggered OnPlayerEnterCheckpoint and disabled OnPlayerLeaveCheckpoint. Check out the wiki for more info on these functions.


Re: Red Marker - Ironboy500 - 24.08.2009

Hey thanks Infamous, are you a guy from Mini Missions maybe?


Re: Red Marker - Infamous - 24.08.2009

Yeah i was admin there but work got in the way lol.


Re: Red Marker - Ironboy500 - 24.08.2009

So we are old friends, you remember me, you approved me as moderator.


Re: Red Marker - Infamous - 24.08.2009

Yeah i remember you mate lol