#1

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
Reply
#2

http://forum.sa-mp.com/showthread.ph...t=moving+gates
Reply
#3

But how to make faction 6?
Reply
#4

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??
Reply
#5

Its gang
Reply
#6

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

Код:
new gate1; //on top
then at the vehicles and objects

Код:
CreateObject(gate1,co-ordinates and all this other stuff );
Reply
#7

Thx you,it helped much
Reply
#8

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
Reply
#9

yea, sorry :P how stupid i was
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)