Help with Class selection
#1

So lets say I am on my classid 0, it would say Cop in the middle and when u spawn it goes away. How can I make it do this
Reply
#2

You use a switch statement under OnPlayerRequestClass and see if the case is 0 and if it is, show some gametext.
Reply
#3

I have no clue how do that....
Reply
#4

Код:
public OnPlayerRequestClass(playerid, classid)

{

gPlayerClass[playerid] = classid;

	switch (classid) {

	  case 0:

	    {

				GameTextForPlayer(playerid, "~g~Worker", 500, 3);

			}

		case 1:

		  {

				GameTextForPlayer(playerid, "~g~Pimp", 500, 3);

			}

		case 2:

	    {

				GameTextForPlayer(playerid, "~g~Triad", 500, 3);

			}

		case 3:

	    {

				GameTextForPlayer(playerid, "~g~FBI", 500, 3);

	}

}

	return 1;

}
Reply
#5

ok is that a filter or no or what shoult it be added to the mod.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)