SA-MP Forums Archive
Little help please - 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: Little help please (/showthread.php?tid=140037)



Little help please - vladez - 07.04.2010

i have a server but the player run like a gay/slow and i want a script for run faster , like CJ in single player

also i have 2 question: If i have 2 team for example: Grove and Ballas, and a Balla guy want to enter in Grove car how can i script that they cant enter anymore on other teams cars? To eject them from car and a message:" Youre not belong to Grove Street!"!.

And he second one: I want to make a register and login panel. How can i script that?

Thanks for Help , Vico


Re: Little help please - Donny_k - 07.04.2010

UsePlayerAnims()
UsePedAnims()

Something along those lines, look down your function list in Pawno as I've forgot it's correct name.

Use "OnPlayerStateChange", if it's "_DRIVER" or "_PASSENGER" then check the team with "SetPlayerTeam" or whatever method you use for setting teams like "gTeam" and if it's not the one you want then remove them with "RemovePlayerFromVehicle". You could also negate all that by using params, again I can't remember the exact name of the function (I no longer script) but it's something like "SetVehicleParamsForPlayer", look down your list and remember vehicles are streamed so you will have to redo it each time it streams in.

Panel as in menu ? I think you mean a dialog, plenty of examples out there, look in the FS section.


Re: Little help please - biltong - 07.04.2010

Quote:
Originally Posted by Donny
UsePlayerAnims()
UsePedAnims()
UsePlayerPedAnims();

xD


Re: Little help please - vladez - 07.04.2010

thx guys