Needed few things... thx - 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: Needed few things... thx (
/showthread.php?tid=66472)
Needed few things... thx -
loT4r - 22.02.2009
Okay, i started my own server and i need a little help... ( i use GF GM )... So here is the things i need:
1. How to make so moving gate close after 5 second...
2. Please tell me how to make so /fuel automaticlly is turned on when player login and how to change the size of text "GAS: %"
3. How to add a simple job "TAXI" so they can take a job and drive taxi xD
4. How to add a simple job "MEDIC" cuz' i deleted organisation Medics, beacuse its stupid
5. How to make so all players can take their job in City Hill by typing /takejob and then the menu show up and they choose...
6. I have a ramp on PD entrance, but how to make so i can open and close it... not like a regular gate, its VERTICALY but when i type /pdc it must be HORISONTAL...
Guys if u try to type "use search button" please dotn cuz i cant find soultion for this...
Thanks all. loT4r.
Re: Needed few things... thx -
Kanji_Suzuki - 22.02.2009
What the hell is this a to do list, i dont think nooone wil do this for you
Re: Needed few things... thx -
Mikep - 22.02.2009
Hurts my eyes to read that.
Re: Needed few things... thx -
loT4r - 22.02.2009
Atleast answer on 1 question? xD
Re: Needed few things... thx -
Karlip - 22.02.2009
You learn how to script and do them all,simple as that.
Re: Needed few things... thx -
MenaceX^ - 22.02.2009
I didn't read it all, But as I see you're a beginner, For /fuel thing is a gas system.. You can't just /fuel it up.
About the Moving Gate
You do it like
pawn Код:
if(!strcmp(cmd,"/gate",true))
{
MoveObject(objectname,1000,1000,955,1); // Objectname is the name of the object, 1000 = X, 1000 = Y, 955 = Z 5 degress underground., 1 is the speed of the gate.
SetTimer(gate,1000*/*seconds*/, true);
return true;
}
forward gate();
public gate MoveObject(objectname,1000,1000,1000,1); // the Z here is 1000, Which simply gets the object up. To be on it's place.
And here you got a moving gate.
About the /takejob.
You create a menu and each option gives to the player another job type.
About the gate in PD, I'm might sure you're talking on San Fierro PD station.
Here you go a moving gate of PD gate in SF, When you're talking about + Auto close after 5 seconds.
pawn Код:
new pdbarrier;
//Someplace in OnGameModeINit
pdbarrier=CreateObject(968, -1701.414551, 687.750793, 24.665670, 0.0000, 269.7592, 89.3814);
//OnPlayerCommandText
if(!strcmp(cmd,"/pdc,"true))
{
SetObjectRot(pdbarrier,0.0000, 359.7592, 90.2409);
SetTimer(barrier,1000*5,true);
return true;
}
//Someplace
forward barrier();
public barrier MoveObject(barrier,0.0000, 90.2409, -90.2409);
And that's all I guess, I wrote it all here so.. bad identitation, tought.
Re: Needed few things... thx -
loT4r - 22.02.2009
OMG, whos the king.... MenaceX is the king! Thanks mate!
Re: Needed few things... thx -
loT4r - 23.02.2009
Can someone please tell me how to make GAS thing better.... I need it to be turned on all the time player is in Vehicle... that count automatic turning /fuel on after player login...
Thanks!