#1

How can i make gates for like factions and gangs? please i need help on this




Thank you
Reply
#2

//--------------------------------------[GATE]------------------------------------------------------
if (strcmp(cmdtext, "/COMMANDCLOSE", true)==0)
{
MoveObject (COMMAND,-380.886,-3110.380,(10).912,2.5);
return 1; X Y Z HOW fast THE LAST 1E
}
if (strcmp(cmdtext, "/COMMANDOPEN", true)==0) if you look at the code you see a different with the first 1e and the second 1e
{ at the first 1e at Z code you see (10)
MoveObject (COMMAND,-380.886,-3110.380,(3).912,2.5); at the second 1e at Z code you see (3) i changed it , when you type /commandopen it
return 1; SAME WITH HERE goes down if you make that command lower as the standard code it goes down like (4)
} if you make the standard code higher like (12) it goes up but the saved position
is always the standard go see at ongamemodeinit that i put in the reply (--->)
command the standard code from this code what you see left = 10

AT ongamemode init that is the standard code
Command= CreateObject(1508, -415.287292, -3124.881592,---> 10.045923, 0.0000, 0.0000, 78.7500);

and at new ( new COMMAND

Reply
#3

Quote:
Originally Posted by Derksen123
//--------------------------------------[GATE]------------------------------------------------------
if (strcmp(cmdtext, "/COMMANDCLOSE", true)==0)
{
MoveObject (COMMAND,-380.886,-3110.380,(10).912,2.5);
return 1; X Y Z HOW fast THE LAST 1E
}
if (strcmp(cmdtext, "/COMMANDOPEN", true)==0) if you look at the code you see a different with the first 1e and the second 1e
{ at the first 1e at Z code you see (10)
MoveObject (COMMAND,-380.886,-3110.380,(3).912,2.5); at the second 1e at Z code you see (3) i changed it , when you type /commandopen it
return 1; SAME WITH HERE goes down if you make that command lower as the standard code it goes down like (4)
} if you make the standard code higher like (12) it goes up but the saved position
is always the standard go see at ongamemodeinit that i put in the reply (--->)
command the standard code from this code what you see left = 10

AT ongamemode init that is the standard code
Command= CreateObject(1508, -415.287292, -3124.881592,---> 10.045923, 0.0000, 0.0000, 78.7500);

and at new ( new COMMAND

Uh? What are you doing?..



Do you have any variables to assign the gate to a faction?
You could do it with mysql scripting, making a table and fill it up, but if you don't know. You can just make a command and assign the gate to a faction, as far as you have factions.
Reply
#4

Where do i place it?
Reply
#5

And how do i make it like LSPD gate only lspd members can open it
And on..
Reply
#6

Quote:
Originally Posted by Magneeto
And how do i make it like LSPD gate only lspd members can open it
And on..
Make a check if player is LSPD member.
Reply
#7

How....

Thank you
Reply
#8

Use if statement.
Reply
#9

Can you do it?


Im still learning how to script sorry




Thank you
Reply
#10

pawn Код:
if(IsPlayerLSPD_Or_Whatever[playerid] == 1)
{
// your code
}
I don't know what do you use, IsPlayerLSPD or anything like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)