Gate - 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: Gate (
/showthread.php?tid=176796)
Gate -
erikhenri - 14.09.2010
How can i make gate to faction 6. my coords are
969,0.0,1240.8436279297,-767.23089599609,91.065307617188,0.0,0
969,0.0,1249.6994628906,-767.24035644531,91.064117431641,0.0,0
Please help
Re: Gate -
thomas.. - 14.09.2010
http://forum.sa-mp.com/showthread.ph...t=moving+gates
Re: Gate -
erikhenri - 15.09.2010
But how to make faction 6?
Re: Gate -
Mike_Peterson - 15.09.2010
Jeez, sorry but i kinda "hate" these kind of peoples, though i was a beginner everyone was.. anyways
erik, did u just only put co-ordinates on the forum without attempting to do it urself?
i suppose ur using a godfather edit...
can you tell me what faction 6 is? gang? news reporter? army??
Re: Gate -
erikhenri - 15.09.2010
Its gang
Re: Gate -
Mike_Peterson - 15.09.2010
like a russian family? La Famiglia Sinatra?
i think ur using a godfather edit simple do this.
Код:
strcmp bla bla // command to open gate
{
if(PlayerInfo[playerid][pMember] == 6) return SendClientMessage(playerid,YOURCOLOR,"You have to be in the gang to open this gate.");
{
MoveObject(gate1, and co-ordinates etc. );
return 1;
}
Fill in ur details
also define ur gate so
then at the vehicles and objects
Код:
CreateObject(gate1,co-ordinates and all this other stuff );
Re: Gate -
erikhenri - 15.09.2010
Thx you,it helped much
Gate -
[NoV]LaZ - 15.09.2010
Quote:
Originally Posted by erikhenri
Thx you,it helped much
|
Guess not, since he gave you an incorrect example.
CreateObject returns the ID of the object that was created, so your code should look something like this:
pawn Код:
new gate;
...
public OnGameModeInit( )
{
gate = CreateObject( ... );
....
return 1;
}
________
Gay Asian
Re: Gate -
Mike_Peterson - 15.09.2010
yea, sorry :P how stupid i was