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.

give player score 1 keer

Posted

public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 413.9732,2532.2910,19.1501))
   {
       SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
   }
return 1;
}

ik wil dat het script maar 1 keer score geeft , maar dat is me nog niet gelukt om het te maken.

weten jullie misschien hoe dat moet?

Featured Replies

  • Author

return 0;?

new bool:x[MAX_PLAYERS];

OnPlayerConnect(playerid)

x[playerid] = true;

public OnPlayerUpdate(playerid)
{
       if(IsPlayerInRangeOfPoint(playerid, 10.0, 413.9732,2532.2910,19.1501) && x[playerid])
   {
       SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
x[playerid] = false;
   }
       return 1;
}

BTW Lol @ die 2 reacties boven mij.

Edited by GTAguillaume

  • Author

als ik er nog 1 wil maken moet ik dan de naam x[playerid] veranderen?

  • Author

Tnx , het werkt :D

als ik er nog 1 wil maken moet ik dan de naam x[playerid] veranderen?

Dan kun je een nieuwe variable maken of een 2de rij aanmaken;

new bool:x[MAX_PLAYERS][2];

new bool:x[MAX_PLAYERS],bool:y[MAX_PLAYERS];

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.

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.