text by skin class selection menu (Question)
#1

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
Reply
#2

SetPlayerSkin and GameTextForPlayer
Reply
#3

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.
Reply
#4

Whats wrong? I didnt see the text

code:

PHP код:
switch(classid)
    {
        case 
280284285//player has police skin
        
{
            
GameTextForPlayer(playerid"~p~Police"30003);
        }
        case 
274275276//player has medic skin
        
{
            
GameTextForPlayer(playerid"~o~Medic"30003);
        }
        case 
230212134//player has hobo skin
        
{
            
GameTextForPlayer(playerid"~b~Hobo"30003);
        }
        case 
385354//player has old meat skin
        
{
            
GameTextForPlayer(playerid"~w~Old meat"30003);
        }
        case 
161158159//player has farmer skin
        
{
            
GameTextForPlayer(playerid"~r~Farmer"30003);
        }
        case 
282930//player has hitman skin
        
{
            
GameTextForPlayer(playerid"~p~Hitman"30003);
        }
        case 
802396//player has sportive skin
        
{
            
GameTextForPlayer(playerid"~o~Sporter"30003);
        }
        case 
23724663//player has whores skin
        
{
            
GameTextForPlayer(playerid"~y~Whore"30003);
        }
        case 
828384//player has elvis skin
        
{
            
GameTextForPlayer(playerid"~r~Elvis"30003);
        }
        case 
60170188//player has racer skin
        
{
            
GameTextForPlayer(playerid"~g~Racer"30003);
        }
        case 
2726016//player has builder skin
        
{
            
GameTextForPlayer(playerid"~y~Builder"30003);
        }
        case 
62255253//player has pilot skin
        
{
            
GameTextForPlayer(playerid"~b~Pilot"30003);
        }
    }
    return 
1;

I didnt have any errors or warnings
Reply
#5

Whats wrong??

[EDIT] Sorry for double post,
Reply
#6

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.
Reply
#7

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.
Reply
#8

Your switching classid, not skinid,
Reply
#9

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)