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.

Hoe maak ik boundaries ?

:puh: Die guest hier wil het ook weten :puh: Is een vriend

Hey Karl :puh:

Tom :cya:

Edited by .:TOM:.

Featured Replies

SetPlayerWorldBounds(playerid, max-x, min-x, max-y, min-y);

Voila

  • Author

Ty :puh:

public OnPlayerConnect(playerid)
{
   return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   return 1;
}

Hoe doe ik dat bij die gebeurenissen Dat iedereen op de server een boodshap krijgt met .. has logged ..

PS: say to her that i didn't see that in wiki

and i feel like an idiot

XD

Tom :cya:

Edited by .:TOM:.

public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined the server.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}

&

public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));

switch(reason)
{
	case 0: format(string, sizeof(string), "%s has left the server. (Timeout)", pName);
	case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pName);
	case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pName);
}

SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}

Staat notabene op de Wiki van SA:MP zelf, zowel in het nederlands als in het engels.

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.