SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 13/10/2012, 06:57 PM   #11
Glint
Guest
 
Posts: n/a
Default Re: /goto and /gethere command

Quote:
Originally Posted by Wayn View Post
please tell me a way how to use the /goto code for admin of level2+
It's easy to make

e.g on top of your command check if the player is admin level 2+ or not!
Code:
if(PlayerInfo[playerid][pAdmin] >= 2)
        {
                // Do your code here (the /goto command)
        }
        else SendClientMessage(playerid, -1, "Error: You need to be admin level 2+ in order to use this command!");
        return 1;
Now change PlayerInfo[playerid][pAdmin] to the variable you use in your script.
  Reply With Quote
Old 13/10/2012, 07:17 PM   #12
gtakillerIV
High-roller
 
gtakillerIV's Avatar
 
Join Date: Sep 2011
Location: UAE, Sharjah.
Posts: 1,002
Reputation: 201
Default Re: /goto and /gethere command

Quote:
Now change PlayerInfo[playerid][pAdmin] to the variable you use in your script.
If he doesn't have all of that account system and stuff he will say I don't understand

On topic:

Not a bad tutorial.
gtakillerIV is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with goto Command mrsamp Help Archive 6 18/08/2011 03:47 PM
/goto, /gethere problem Rafa Help Archive 4 26/07/2011 08:00 PM
I need some help with a goto command and gethere Shockey HD Help Archive 6 19/07/2011 08:29 AM
How to make a /gethere «id» and /goto «id» command? Rubennnnn Help Archive 12 02/12/2009 06:42 AM


All times are GMT. The time now is 05:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.