#1

This might be very easy to most of you.
When selecting a skin, how can I have text displayed on specific skins?
For example

When you look through the "Grove Street" skins white text will pop up above you and say

"Grove Street"
Reply
#2

Код:
AddClass(270);//GroveStreetSkinID
Код:
}
	if(GetPlayerSkin(playerid) == 270)
	{
	    CurrentSkin[playerid] = 277;
 		GameTextForPlayer(playerid,"~g~GroveStreet",5000,3);
	}
Reply
#3

Where do I add it?
Reply
#4

Quote:
Originally Posted by HaiderABbas
Посмотреть сообщение
Код:
AddClass(270);//GroveStreetSkinID
Код:
}
	if(GetPlayerSkin(playerid) == 270)
	{
	    CurrentSkin[playerid] = 277;
 		GameTextForPlayer(playerid,"~g~GroveStreet",5000,3);
	}
No!

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{

    switch(classid)
    {
        case 0: GameTextForPlayer(playerid,"Your skin",5000,3); //change 0 to the class id of your skin
    }
    return 1;
}
Reply
#5

Код:
}
public OnGameModeInit()
{
AddClass(270);//Grove1
Код:
}
public OnPlayerRequestClass(playerid, classid)
{
}
	if(GetPlayerSkin(playerid) == 270)
	{
	    CurrentSkin[playerid] = 277;
 		GameTextForPlayer(playerid,"~g~Grove",5000,3);
	}
+REP if i helped u
Reply
#6

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
No!

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{

    switch(classid)
    {
        case 0: GameTextForPlayer(playerid,"Your skin",5000,3); //change 0 to the class id of your skin
    }
    return 1;
}
This works just fine, but when I look through the classes it just says "Your skin"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)