How to highlight text?
#1

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

hello? guys?
Reply
#3

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)