SA-MP Forums Archive
How to highlight text? - 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: How to highlight text? (/showthread.php?tid=539702)



How to highlight text? - GunZ75 - 29.09.2014

Hi guys im having here a little doubt... i have no idea of when a player chooses from skin to skin on the skin selector in some skins it appears a message on screen "Civilian" and others with a message on screen "Cops" can u guys tell me how to do it? i would apreciate alot

PS: also i need to know how to make random spawn points? like if a player spawns he goes a random spawnpoint for his class


Re: How to highlight text? - GunZ75 - 29.09.2014

hello? guys?


Re: How to highlight text? - Kane_Phoenix - 29.09.2014

First read 'https://sampwiki.blast.hk/wiki/Main_Page'

PHP код:
//Top
new Float:RandomSpawns[4][3] = {
{
X,Y,Z},//Replace with your Spawn 1 Coords
{X,Y,Z},//Replace with your Spawn 2 Coords
{X,Y,Z},//Replace with your Spawn 3 Coords
{X,Y,Z//Replace with your Spawn 4 Coords
};
//Command or what ever
new rand random(3);
SetPlayerPos(playerid,RandomSpawns[rand][0],RandomSpawns[rand][1],RandomSpawns[rand][2]);
public 
OnGameModeInit()
{
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);//Civillian (classid = 0)
    
AddPlayerClass(2871958.37831343.157215.3746269.1425000000);//Cop (classid = 1)
    
return 1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    if(
classid == 0)
    {
        
GameTextForPlayer(playerid,"~r~Civillian",1000,3);
    }
    if(
classid == 1)
    {
        
GameTextForPlayer(playerid,"~b~Cop",1000,3);
    }
    return 
1;