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.

Ik wil voor de Rcon Admins, een Command hebben dat er in hele grote tekst, je eigen tekst komt te staan:) hoe doe ik dat?

Featured Replies

  • Author
/announce dus?

Ja :)

Ik heb mijn /me commando aangepast en dit is het resultaat:

if(strcmp(cmdtext,"/announce ",true,9)==0) {
if(IsPlayerAdmin(playerid)) {
new str1[256];
new str2[256];
new pName[24];
GetPlayerName(playerid, pName, 24);
new len = strlen(cmdtext[9]);
if ((len >= 0) && (len <= 128)) {
format(str1,sizeof(str1),"Admin %s: %s",pName, cmdtext[9]);
format(str2,sizeof(str2),"%s",cmdtext[9]);
SendClientMessageToAll(COLOR_GREEN, str1);
GameTextForAll(str2, 6000, 4);
}
}
return 1;
}

Bij deze commando word de tekst ook is de chat weergegeven (zie toegevoegde afbeelding)

Als niet wilt dat je tekst in de chat komt maar alleen midden in beeld dan moet je deze ingekorte code gebruiken:

if(strcmp(cmdtext,"/announce ",true,9)==0){
if(IsPlayerAdmin(playerid)){
new str[256];
new len = strlen(cmdtext[9]);
if ((len >= 0) && (len <= 128)) {
format(str,sizeof(str),"%s",cmdtext[9]);
GameTextForAll(str, 6000, 4);
}
}
return 1;
}

post-70241-1192458501_thumb.jpg

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.