SA-MP Forums Archive
Two questions - 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: Two questions (/showthread.php?tid=103520)



Two questions - yarinbn - 20.10.2009

Hello
I am making my own RP mode . Now i have two questions :
1. How to make factions ? ( Please don`t tell me it`s hard and bla bla ) .
2. How to make that a player when he gets in car , he gonna get freezed ? ( Only when he is inside ) .
Thank you


Re: Two questions - saiberfun - 20.10.2009

Quote:
Originally Posted by yarinbn
Hello
I am making my own RP mode . Now i have two questions :
1. How to make factions ? ( Please don`t tell me it`s hard and bla bla ) .
2. How to make that a player when he gets in car , he gonna get freezed ? ( Only when he is inside ) .
Thank you
2.
OnPlayerEnterVehicle u need to use
TogglePlayerControllable(playerid,false);
for that

1. you need to make saved variables for players which u change when they get into a faction


Re: Two questions - yarinbn - 20.10.2009

About 2 - Thank you
I need the fully script , how to set ranks , how to invite them into the faction :P If you understand



Re: Two questions - Correlli - 20.10.2009

Quote:
Originally Posted by yarinbn
About 2 - Thank you
I need the fully script , how to set ranks , how to invite them into the faction :P If you understand
Try to search at the Filterscript or Gamemode section. Use ****** to search because sa-mp's search function is currently disabled.


Re: Two questions - yarinbn - 20.10.2009

Yep i tryed , what i wanted to find , i didn`t found it :P


Re: Two questions - saiberfun - 20.10.2009

Quote:
Originally Posted by yarinbn
Yep i tryed , what i wanted to find , i didn`t found it :P
like dude
i can tell u didnt search
because there are enough GMs
like GodFather Penl or LARP


Re: Two questions - yarinbn - 20.10.2009

But how do i make a faction by downloading the full modes , lol .
BTW , i made the onplayerentervehicle - It`s freezing my player outside the car . I want its freeze them inside .


Re: Two questions - Correlli - 20.10.2009

Quote:
Originally Posted by yarinbn
BTW , i made the onplayerentervehicle - It`s freezing my player outside the car . I want its freeze them inside .
OnPlayerEnterVehicle will be called every time when a player is near a vehicle and when he presses the enter-key, means you can still cancel the entry but this callback will be called anyway.
Use OnPlayerStateChange callback instead and check for state-change.


Re: Two questions - yarinbn - 20.10.2009

Mate i don`t care what`s it doing , just tell me how to fix it please XD
Thanks


Re: Two questions - MenaceX^ - 20.10.2009

Scripting a roleplay script without having the knowledge of this simple stuff is diffcoult.