Posts: 216
Threads: 55
Joined: Feb 2016
Reputation:
0
Right I need help with a couple things
1. Is it createobject and moveobject to make something like a barrier open with a command?
2. Anyone show me how to add admin ranks instead of the level number....
Any help will be much appreciated, Thank you.
Posts: 1,498
Threads: 110
Joined: Aug 2013
1.Yes
2.Just write something like this
Код:
GetAdminName(playerid)
{
new adminname[128];
switch(pInfo[playerid][pAdminLevel]) <YOUR OWN VARIABLE HERE>
{
case 0: adminname = "Not Admin";
case 1: adminname = "Trial Moderator";
case 2: adminname = "Moderator Team";
case 3: adminname = "Administrator Team";
case 4: adminname = "Support Team";
case 5: adminname = "Management Team";
case 6: adminname = "Developer Team";
case 7: adminname = "Community Owner";
}
return adminname;
}
Posts: 216
Threads: 55
Joined: Feb 2016
Reputation:
0
Could you show me an example of the moveobject code for a faction?
Posts: 349
Threads: 38
Joined: Jul 2015
Reputation:
0
Well, there are plenty of tutorials about moving gates, you could look at those tutorials and try making one yourself. But for making the barrier opening/closing like in real life (or in single player's LSPD barrier) you have to do a small trick, using a timer of 0.5 to move the object and slightly changing the rotation of the object while moving it would make the barrier open/close smoothly.
Posts: 216
Threads: 55
Joined: Feb 2016
Reputation:
0
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\core.pwn(2940) : error 010: invalid function or declaration
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\core.pwn(4754) : warning 203: symbol is never used: "GetAdminName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I tried that getadminname thing and this is what i got
help please?