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.

Hallo,

Ik heb een probleem waar ik maar niet uit kom.

Wat ik wil hebben is dat je 1 skin, maar 1 keer kan gebruiken gedurdende de gamemode.

Ik weet al dat het te maken heeft met:

public OnPlayerSpawn(playerid)

if(gTeam[playerid] == TEAM_MAGMAAR1KEER) { //Als player in team zit
SetPlayerColor(playerid,COLOR_YELLOW); //Zet de player naar color

//Hier moet nog iets komen waarbij hij gaat kijken of deze skin al in gebruik is

GameTextForPlayer(playerid, "~R~Sorry, Only 1 person can be this skin.", 500, 3);
}

IK zat zelf te denken aan zoiets als:

(Dit heb ik uit een ander topic:)

if(GetPlayerSkin(playerid)== 217) {
SetPlayerHealth(playerid, 0);
ForceClassSelection(playerid);
SendClientMessage(playerid, COLOR_RED, "Only 1 can be this skin!");
}
}

Maar dan kan je nooit deze skin kiezen, ik wil dus dat er maar 1 deze skin kan kiezen..

>>> Door Azer: Of je edit gewoon even je eerste post, posts samengevoegd. <<<

Edited by Azer

Featured Replies

new IsSkin217Used;

public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid)== 217) 
{
	if(IsSkin217Used == 0)
	{
		IsSkin217Used = 1;
	}
	else
	{
		SendClientMessage(playerid, COLOR_RED, "Only 1 can be this skin!");
		return 0; 
	 }
}
return 1;
}

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.