Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

goede uitleg site gezocht

yo ik zoek een goede site waar uitgelegd word hoe je admin commands enz kan maken voor samp

(--------------->ps wiki samp ken ik al dus ik bedoel andere<-----------------)

bedankt alvast :tu:

Featured Replies

Admin commands voor rcon-admins?

Zo ja, dan hoef je alleen maar bovenaan dat commando

if(!IsPlayerAdmin(playerid)) return 0;

te zetten, om te voorkomen dan niet-rconadmins, dat commando kunnen gebruiken.

Ohja, en anders kan je wel adminscripts vinden in showroom op sa:mp forum.

Edited by =>Sandra<=

Volgens mij is dat wat jij doet voor niet-admins, en we moeten het voor admins hebben.

In dat geval maak je zo'n soort commando (ik doe dit even uit mijn hoofd):

if(strcmp("/commando", cmdtext, true, 10) == 0 && IsPlayerAdmin == 1) 
 {
	 //Hier de rest van je commando
	 return 1;
}

Zoals je ziet staat er achter '&& IsPlayerAdmin == 1'. && geeft aan dat er nog iets benodigd moet zijn, in feite dus gewoon 'en'. IsPlayerAdmin spreekt voor zich, en die '1' geeft aan dat dit ingeschakeld moet zijn.

Succes!

Edited by Donwell

Volgens mij is dat wat jij doet voor niet-admins, en we moeten het voor admins hebben.

In dat geval maak je zo'n soort commando (ik doe dit even uit mijn hoofd):

if(strcmp("/commando", cmdtext, true, 10) == 0 && IsPlayerAdmin == 1) 
 {
	 //Hier de rest van je commando
	 return 1;
}

Zoals je ziet staat er achter '&& IsPlayerAdmin == 1'. && geeft aan dat er nog iets benodigd moet zijn, in feite dus gewoon 'en'. IsPlayerAdmin spreekt voor zich, en die '1' geeft aan dat dit ingeschakeld moet zijn.

Succes!

Dat is niet helemaal waar, Sandra controleert of de speler geen admin is. Is dat zo, wordt het command afgebroken(return 0), is dat niet zo en is de speler dus wel admin gaat het command verder.

Jouw code klopt overigens niet helemaal. Volgens mij(maar dit weet ik niet zeker) is die == 0 en == 1 niet nodig, en het moet sowieso IsPlayerAdmin(playerid) zijn.

if(strcmp("/commando", cmdtext, true, 10) && IsPlayerAdmin(playerid))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.