Jump 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.

new AllowGoto[MAX_PLAYERS];

AllowGoto[playerid] = 1; // Standaard mogen admins wél naar spelers teleporten

if(!strcmp(cmdtext, "/goto", true, 5))
{
new targetPlayer = strval(cmdtext[ 6 ]);
new Float: PlayerPosition[ 3 ];
if(!IsPlayerConnected(targetPlayer)) return 1;
if(IsPlayerAdmin(playerid))
if(AllowGoto[targetPlayer] == 0)
{
SendClientMessage(playerid, COLOR_RED, "The player doesn't want you to teleport to him/her");
return 1;
}
{
GetPlayerPos(targetPlayer, PlayerPosition[ 0 ], PlayerPosition[ 1 ], PlayerPosition[ 2 ]);		 
SetPlayerPos(playerid, PlayerPosition[ 0 ], PlayerPosition[ 1 ], (PlayerPosition[ 2 ]+10));		
}
return 1;
}

if (strcmp("/yesgoto", cmdtext, true) == 0)
{
AllowGoto[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Now everybody can teleport to you");
return 1;
}

if (strcmp("/nogoto", cmdtext, true) == 0)
{
AllowGoto[playerid] = 0;
SendClientMessage(playerid, COLOR_GREEN, "Now nobody can teleport to you");
return 1;
}

Hoe kan dat dat /yesgoto en /nogoto het niet doet?

Edited by Las Vegas

Featured Replies

De originele code van Sandra18 werkt anders prima. Wellicht leren lezen, knippen & plakken? neem nog maar is een kijkje in je eerste topic.

*Slotje*

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

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.