text by skin class selection menu (Question) -
mickos - 10.06.2012
Hey,
I wanna add text by my skin selection.
I have:
3 police skins
3 medic skins
3 fire man skins
and more..
Now is my question. How do I make text by the skin, when a player see the 3 police skins he see a text namely: Police.
And when he come by the medic skins he see Medic. And when he come by the 3 firemans he see Fireman.
How do I make that?
Almost ty
Re: text by skin class selection menu (Question) -
milanosie - 10.06.2012
SetPlayerSkin and GameTextForPlayer
Re: text by skin class selection menu (Question) -
JaKe Elite - 10.06.2012
here is example
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 105, 106, 107: //if player has grove street skins
{
GameTextForPlayer(playerid, "~g~Grove", 3000, 3);
}
}
return 1;
}
EDIT:
Quote:
Originally Posted by milanosie
SetPlayerSkin and GameTextForPlayer
|
he ask if player has medic/police skin he will get a gametext
he doesn't ask for "how to" set a skin.
Re: text by skin class selection menu (Question) -
mickos - 10.06.2012
Whats wrong? I didnt see the text
code:
PHP код:
switch(classid)
{
case 280, 284, 285: //player has police skin
{
GameTextForPlayer(playerid, "~p~Police", 3000, 3);
}
case 274, 275, 276: //player has medic skin
{
GameTextForPlayer(playerid, "~o~Medic", 3000, 3);
}
case 230, 212, 134: //player has hobo skin
{
GameTextForPlayer(playerid, "~b~Hobo", 3000, 3);
}
case 38, 53, 54: //player has old meat skin
{
GameTextForPlayer(playerid, "~w~Old meat", 3000, 3);
}
case 161, 158, 159: //player has farmer skin
{
GameTextForPlayer(playerid, "~r~Farmer", 3000, 3);
}
case 28, 29, 30: //player has hitman skin
{
GameTextForPlayer(playerid, "~p~Hitman", 3000, 3);
}
case 80, 23, 96: //player has sportive skin
{
GameTextForPlayer(playerid, "~o~Sporter", 3000, 3);
}
case 237, 246, 63: //player has whores skin
{
GameTextForPlayer(playerid, "~y~Whore", 3000, 3);
}
case 82, 83, 84: //player has elvis skin
{
GameTextForPlayer(playerid, "~r~Elvis", 3000, 3);
}
case 60, 170, 188: //player has racer skin
{
GameTextForPlayer(playerid, "~g~Racer", 3000, 3);
}
case 27, 260, 16: //player has builder skin
{
GameTextForPlayer(playerid, "~y~Builder", 3000, 3);
}
case 62, 255, 253: //player has pilot skin
{
GameTextForPlayer(playerid, "~b~Pilot", 3000, 3);
}
}
return 1;
}
I didnt have any errors or warnings
Re: text by skin class selection menu (Question) -
mickos - 10.06.2012
Whats wrong??
[EDIT] Sorry for double post,
Re: text by skin class selection menu (Question) -
JaKe Elite - 10.06.2012
do you mean you don't see the text in chat? or you just misread the GameText?
because GameText is not visible in chat, its only visible in screen.
Re: text by skin class selection menu (Question) -
mickos - 10.06.2012
I mean that when am I in the skin class menu, that I want a text above the skin. Namely: Police by the 3 police skins.
etc.
Re: text by skin class selection menu (Question) -
milanosie - 10.06.2012
Your switching classid, not skinid,
Re: text by skin class selection menu (Question) -
DonWade - 10.06.2012
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1, 2, 3: // that is for first three skins added ongamemodeinit
{
GameTextForPlayer(playerid, "~g~your text", 3000, 3);
}
}
return 1;
}