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.

hoe ID van een slachtoffer aanvragen

hallo,

ik ben een command aan het maken waarin een spelerid moet worden ingevult(het slachtoffer dus).

dus bijvoorbeeld /lol [id]

en dan wil ik dus

victim = (hier moet hij achter het spelerid van het slachtoffer komen)

weet iemand hoe je dit moet doen of welk command er achterzit om er achter te komen

ps. ik had nu victim = ReturnUser(tmp); alleen dan herkent hij ReturnUser niet:P

Featured Replies

ik heb deze op google gevonden onder: victim script sa:mp

1.

#include <a_samp>

2.

3.

/*-------------------------

4.

HeadShot System by Peppe

5.

The faster implementation of a headshot system in SA:MP.

6.

This script requires the new version of SA:MP 0.3b.

7.

8.

www.pawnoitalia.forumfree.it

9.

www.atlantisgaming.it

10.

-------------------------*/

11.

12.

#define TIMER_INTERVAL 150

13.

14.

new

15.

maxPlayers;

16.

17.

public OnFilterScriptInit()

18.

{

19.

maxPlayers = GetMaxPlayers();

20.

SetTimer("CheckHeadShot", TIMER_INTERVAL, 1);

21.

return 1;

22.

}

23.

24.

public OnPlayerDeath(playerid, killerid, reason)

25.

{

26.

if(GetPVarInt(playerid, "Headshotted") == 1)

27.

{

28.

SetPVarInt(playerid, "Headshotted", 0);

29.

GameTextForPlayer(playerid, "~r~Headshotted", 3000, 3);

30.

GameTextForPlayer(killerid, "~r~Headshott", 3000, 3);

31.

}

32.

return 1;

33.

}

34.

35.

forward CheckHeadShot();

36.

public CheckHeadShot()

37.

{

38.

new

39.

index;

40.

for(new playerid; playerid < maxPlayers; playerid++)

41.

{

42.

if(IsPlayerConnected(playerid))

43.

{

44.

index = GetPlayerAnimationIndex(playerid);

45.

if(index == 1173 || index == 1175 || index == 1177 || index == 1178)

46.

{

47.

SetPVarInt(playerid, "Headshotted", 1);

48.

SetPlayerHealth(playerid, 0);

49.

}

50.

}

51.

}

52.

return 1;

53.

}

Dcmd of strtok.

Ik raad de eerste aan. Niet alleen omdat het mijn tutorial is, maar ook omdat het gemakkelijker is.

  • Author

ok heel erg bedankt big boss, heb hem met dcmd gemaakt

Edited by Morph1

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.