SA-MP Forums Archive
How to make? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make? (/showthread.php?tid=90003)



How to make? - Geekzor - 05.08.2009

Guys i see on Some server there have Charecters 2 lines writen like

Skin FBI ...

F.B.I - with blue
Police Officer - WIth White

or something like this and i try to make that and i fail as always Lol

here is what i try to make

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerInterior(playerid, 3); // Jizzy's Club in SF
	SetPlayerPos(playerid, -2670.0515,1409.4496,907.5703);
	SetPlayerFacingAngle(playerid, 268.5060);
	SetPlayerCameraPos(playerid, -2667.1563,1409.3988,907.8232);
	SetPlayerCameraLookAt(playerid, -2670.0515,1409.4496,907.5703);
	
	//-------------------------------------------------------------------------------------------------------------------------------------
	
	if(classid == 0) {
		GameTextForPlayer(playerid,"~w~Burger Shot Girl",1000,5);
		GameTextForPlayer(playerid,"~w~Food Delivery",1000,5);
	} else if(classid == 1) {
	  GameTextForPlayer(playerid,"~w~Cluckin'n Bell",1000,5);
	  GameTextForPlayer(playerid,"~w~Food Delivery",1000,5);
	} else if(classid == 2) {
	  GameTextForPlayer(playerid,"~w~Pizza Boy",1000,5);
	  GameTextForPlayer(playerid,"~w~Food Delivery",1000,5);
	} else if(classid == 3) {
	  GameTextForPlayer(playerid,"~w~Taxi Girl",1000,5);
	  GameTextForPlayer(playerid,"~g~Taxi Driver",1000,5);
	} else if(classid == 4) {
	  GameTextForPlayer(playerid,"~w~Taxi Man",1000,5);
	  GameTextForPlayer(playerid,"~g~Taxi Driver",1000,5);
	}
	return 1;
}
Example:

There write Name of Skin + under name of skin it write his/her job ...but when i try this just show ''Taxi Driver'' or ''Food Delivery'' wtf

can anyone help please

ty



Re: How to make? - Geekzor - 05.08.2009

nvm fixed