SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=445970)



Help - BatmanAndRobin - 23.06.2013

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"


Re: Help - HaiderABbas - 23.06.2013

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



Re: Help - BatmanAndRobin - 23.06.2013

Where do I add it?


Re: Help - thefatshizms - 23.06.2013

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



Re: Help - HaiderABbas - 23.06.2013

Код:
}
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


Re: Help - BatmanAndRobin - 23.06.2013

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"