• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

0.2.7

WibbenZ

Global Moderator
Staff member
Global Moderator
Joined
Oct 16, 2008
Messages
6,383
Solutions
229
Reaction score
1,521
Location
Sweden
Hey guys, How can I add that one group has 1 addon and the other has another....


Ive changed the source.

Can this work?

Code:
{
	if(player->accessLevel > 0

		if(acc.accountType > 3)
			player->defaultOutfit.lookType = 75;
		else
			player->defaultOutfit.lookType = 136;
	}
	 	if(player->accessLevel > 0
	{
         if(acc.accountType > 5)
			player->defaultOutfit.lookType = 266;
					else
			player->defaultOutfit.lookType = 136;
         }
         	{
         if(acc.accountType > 6)
			player->defaultOutfit.lookType = 302;
					else
			player->defaultOutfit.lookType = 136;
         }
	else
		player->defaultOutfit.lookType = result.getDataInt("looktype");

	player->defaultOutfit.lookHead = result.getDataInt("lookhead");
	player->defaultOutfit.lookBody = result.getDataInt("lookbody");
	player->defaultOutfit.lookLegs = result.getDataInt("looklegs");
	player->defaultOutfit.lookFeet = result.getDataInt("lookfeet");
	player->defaultOutfit.lookAddons = result.getDataInt("lookaddons");
	player->currentOutfit = player->defaultOutfit;
 
Last edited:
Code:
	if(player->accessLevel > 0)
	{
		if(acc.accountType == 5)
			player->defaultOutfit.lookType = 266;
		else if(acc.accountType == 6)
			player->defaultOutfit.lookType = 302;
		else
			player->defaultOutfit.lookType = 75;
	}
	else
		player->defaultOutfit.lookType = result.getDataInt("looktype");
 
Code:
	if(player->accessLevel > 0)
	{
		if(acc.accountType == 5)
			player->defaultOutfit.lookType = 266;
		else if(acc.accountType == 6)
			player->defaultOutfit.lookType = 302;
		else
			player->defaultOutfit.lookType = 75;
	}
	else
		player->defaultOutfit.lookType = result.getDataInt("looktype");

dident work..

look attach(dient work with.cpp so I uploaded in txt file.
 

Attachments

Last edited:
wtf is this
Code:
	player->health = result.getDataInt("health");
	player->healthMax = result.getDataInt("healthmax");
[SIZE="5"][B][COLOR="Red"]{[/COLOR][/B][/SIZE]
	if(player->accessLevel > 0
[SIZE="5"][B][COLOR="Red"]}[/COLOR][/B][/SIZE]
	{
		if(acc.accountType == 5)
 
can you try combile the 0.2.7 it says an error no "message" only error: combile.
 
Back
Top