[HELP] OnPlayerText
#1

Hello there!
I'm trying to put a text that shows up at every signgle skin in the skin selection...
Example, I have a Grove Gang, there I want a text like "Grove Street", then when I switch to antother skin I want a text like "The ballas"... you know what I mean?
I'm setting texts up because some skins are only for admins or gang leaders...

Thanks for the help!
Reply
#2

OnPlayerClassSelection
Switch(classid)
{
case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");
....
case 256: yada yada
}
Reply
#3

Do you mean like;

If I have 1/3 of the ballas skin, my chat is purple?
Reply
#4

Quote:
Originally Posted by MenaceX^
Do you mean like;

If I have 1/3 of the ballas skin, my chat is purple?
I just want a normal white text to show up when I see that skin
Reply
#5

Then use what SilentHuntR posted.
Reply
#6

Quote:
Originally Posted by SilentHuntR
OnPlayerClassSelection
Switch(classid)
{
case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");
....
case 256: yada yada
}
I just get this errors:

The "switch(classid)" = invalid function or declaration
The "case 0: GameTextForPlayer(playerid,1,"IT'S THE BACONATOR!!!");" = invalid function or declaration
The "case 256: yada yada" = invalid function or declaration


Reply
#7

... That was an example, you weren't meant to copy it word for word.... dumby
Reply
#8

Quote:
Originally Posted by SilentHuntR
... That was an example, you weren't meant to copy it word for word.... dumby
I know it was an example lol

This is the script I maked:

Код:
OnPlayerClassSelection(classid)
{
	case 0: GameTextForPlayer(playerid,0,"Testing text");
	case 1: GameTextForPlayer(playerid,1,"Testing text");
}
But no text showed up

Reply
#9

And it also gave me a warning:

symbol is never used: "OnPlayerClassSelection"

Reply
#10

use public OnPlayerClassSelection(blah)

Then put a switch, and THEN use case 0:, case 1:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)