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

[Help] Put suspect in vehicle

Hallo,

Ten eerste, let niet op mn naam x]. ik vond hem vroeger kewl, maar nu niet meer.

Maar, daarvoor maak ik geen topic.

Ik ben namelijk bezig met een /psu command. als ik die command invoer, dan gaat de playerid in mijn auto.

Maar, als ik de playerid in typ, dan gebeurd er helemaal niks!

Hier code:

	if(strcmp(cmd, "/psu", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    new Float:x, Float:y, Float:z;
	if(!strlen(tmp))
	{
		SendClientMessage(playerid, COLOR_GREY, "USAGE: /psu [playerid]");
		return 1;
	}
	giveplayerid = strval(tmp);
	tmp = strtok(cmdtext, idx);
 		if(gTeam[playerid] == TEAM_COP && IsPlayerInRangeOfPoint(giveplayerid, 8, x , y, z))
   	{
		PutPlayerInVehicle(giveplayerid, GetPlayerVehicleID(playerid), 1);
	}
	return 1;
}

Dit is mn code,

Zoals je ziet, zorg ik ervoor dat de giveplayerid in de playerid zn auto gaat.

Hopelijk kan iemand mij helpen!

Natuurlijk kun je me altijd via xfire te woord staan: Jeroenhulshof

Met Vriendelijke Groeten,

Jeroen Hulshof

Featured Replies

IsPlayerInRangeOfPoint(giveplayerid, 8, x , y, z)

Welk punt? Je wijst geen waarde toe aan x, y en z.

  • Author

IsPlayerInRangeOfPoint(giveplayerid, 8, x , y, z)

Welk punt? Je wijst geen waarde toe aan x, y en z.

Hoe bedoel je?

ik heb ja: New Float:x etc

Ja, maar daarmee declareer je alleen de variabele.. Zoals Big Boss al aangaf, wijs je verder nog geen waarden toe; ze zijn dus in feite nog 'leeg'.

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

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.