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.

!SCRIPT!PROBLEEM :Team Text

moggel :puh:

mijn script probleem =

ik wil maken als een player spawnt met bijv. een medic popetje dat er bij het spawnen text komt te staan

maar er moet weer andere text bij cops staan bijv.

------------------------------

*****you are a Cop*****

your cmds are /CopCmds

other info

-kill not other cops

-nobody kill without reason

------------------------------

die tekst moet er staan bij cops en dit bij medic

------------------------------

****you are a Medic****

your cmds are /MedicCmds

other info

-heal other people

-kill not other people

--------------------------------

en wat er ook nog bij moet komen is

als een medic /meciccmds doet dat ern een lijst met cmds komen maar als een cop /MedicCmds typt moer er komen staan "You are not a Medic' en als een medic /CopCmds typt moet er komen te staan "You are not a Cop"

En als extratje moet er ook een Team chat zijn

volgens mij is het zo wel duidelijk :puh: :P :puh: :P :puh:

mvg, JD

Featured Replies

Probeer deze functies (plak ze onderaan je gm):

stock IsACop(playerid)
{
	new S = GetPlayerSkin(playerid);
	if(S >= 280 && S <= 286 || S == 265 || S == 266 || S == 267) // All cops + Tenpenny, Pulaski, Hernandez
	{
		return 1;
	}
return 0;
}

stock IsAMedic(playerid)
{
	new S = GetPlayerSkin(playerid);
	if(S == 275 || S == 266 || S== 267) // 275 is correct, andere weet ik niet
	{
		return 1;
	}
return 0;
}

Dan kan je gewoon bij je OnPlayerSpawn doen:

public OnPlayerSpawn(playerid)
{
if(IsACop(playerid))
{
	// Zet hier al je SendClientMessage voor cops
}
else if(IsAMedic(playerid))
{
	// Zet hier al je SendClientMessage voor medics
}
return 1;
}

Voor de commands werkt het ongeveer hetzelfde ;) Gewoon checken of de player een medic of cop skin heeft. Ik heb geen zin om een heel script voor je te schrijven, vogel zelf maar wat uit. Zo leer je het, met errors en met oplossingen :puh:

Je kan ook gewoon bij OnPlayerSpawn gTeam opvragen en daar in de callbacks GameTextForPlayer neerzetten.

  • Author

srry maar kan iemand me uit leggen wat gTeam is ???

In mijn script heb ik de basis van >DEZE< tutorial.

Daarin word onderandere gTeam in gebruikt. Kijk maar even.

  • Author

ok. dat gTeam is me wel een beetje duidelijk

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.