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.

/me command

Plz help me,

Ik ben opzoek naar het /me command (/me action)

Plz Help,

Thx

Hannibal

Featured Replies

  • Author

iemand?

Om Sheep maar even te quoten uit een ander topic:

Als mensen 2 dagen lang niet op je vraag reageren mag je er wat mij betreft best een herinneringetje tegenaan gooien maar om nu 3 uur later je topic te bumpen gaat wat ver. Gewoon even afwachten, er komt vanzelf iemand die je de helpende hand biedt.....

Enfin de code zelf:

#define COLOR_PINK 0xFF66FFAA

public OnPlayerCommandText(playerid, cmdtext[])
{
new tmp[256];
new cmd[256];
new playername[256];
  	new string[256];
  	new idx;
  	cmd = strtok(cmdtext, idx);

if(strcmp(cmd, "/me", true)==0) {

		GetPlayerName(playerid, playername, sizeof(playername));
	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp)) { return 1;}
	format(string, sizeof(string), "* %s %s", playername,cmdtext[4]);
	SendClientMessageToAll(COLOR_PINK, string);
	return 1;
	}
	return 0;
}

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
	index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
	result[index - offset] = string[index];
	index++;
}
result[index - offset] = EOS;
return result;
}

[edit] de code bbcode maakt de opmaak een beetje stuk, moet jezelf maar ff wijzigen in pawno. [/edit]

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

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.