A few n00b questions
#1

This topic was in Server Support then moved to this this bored but then I couldn't see it on it, so, yeah... Anyways:

Heres a few other questions of mine that I need answers/examples of :

How to make at least a GOoc chat.
How to make all the names the same color.
How to make bizz's buy able with the gl_property script.
How to select the start-up music.
I use gl_property for my businessz and such, when i host a local server with the filterscript i can see the blue house icon, when i put it on my 24/7 server i can't D: WHYYY?!?!


Thanks, I hope these questions aren't too stupid.
Reply
#2

for same players color are

Код:
public OnPlayerSpawn(playerid)
{
SetPlayerColor(playerid, 0xFFFFFFAA);
PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
return 1;
}
I made to evrybody had WHITE color

Select music song or RequesClass Song do that on this way

Код:
SetupPlayerForClassSelection(playerid)
{
PlayerPlaySound(playerid, 1097, 0.0,0.0,0.0);
}
Here it is OOC chat

Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(gPlayerLogged[playerid] == 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");
	      return 1;
	    }
			if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
			{
				SendClientMessage(playerid, 0xFFFFFFAA, "  The OOC channel has been disabled by an Admin !");
				return 1;
			}
			if(PlayerInfo[playerid][pMuted] == 1)
			{
				SendClientMessage(playerid, 0xFFFFFFAA, "  You can't speak, you have been muted !");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: (/o)oc [ooc chat]");
				return 1;
			}
			format(string, sizeof(string), "OOC %s: %s " , sendername, result);
			OOCOff(0xFFFFFFAA,string);
			printf("%s", string);
		}
		return 1;
You must be sure you have admin system if you dont have it i will update script BE SURE YOU HAVE STRTOK

"How to make bizz's buy able with the gl_property script."

ANWSER: That is little harder to make and you need to have little more time
Reply
#3

Wow man, 4 questions 1 person, your awesome!
Reply
#4

Hmm, the OOC chat didnt work... i have strtok.
Reply
#5

Quote:

I use gl_property for my businessz and such, when i host a local server with the filterscript i can see the blue house icon, when i put it on my 24/7 server i can't D: WHYYY?!?!

What FS, make it like this

Код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 19, 1352.2671,1350.4655,10.5474, 19, 0 );
SetPlayerMapIcon( playerid, 5, 1320.9729,1244.3363,19.3438, 5, 0 );
SetPlayerMapIcon( playerid, 4, 1432.1702,1507.3079,10.5474, 4, 0 );
SetPlayerMapIcon( playerid, 4, 1476.6593,1820.1313,10.5396, 4, 0 );
SetPlayerMapIcon( playerid, 6, 1387.0809,1769.2504,10.8203, 6, 0 );
SetPlayerMapIcon( playerid, 31, 1328.8073,1442.5009,10.5419, 31, 0 );
SetPlayerMapIcon( playerid, 35, 1363.1793,1477.2976,15.4040, 35, 0 );
YOU NEED TO CHANGE CORDINATES AND ICONS IDs HERE YOU CAN FIND MORE INFORMATIONS

https://sampwiki.blast.hk/wiki/SetPlayerMapIcon

this is funcions

Код:
(playerid, iconid, Float:x, Float:y, Float:z, markertype, color)
SetPlayerMapIcon( playerid, 19, 1352.2671,1350.4655,10.5474, 19, 0 );
good luck!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)