SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 27/09/2010, 09:56 AM   #1
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default /colour cmd?

Do you guys know how to make a /colour command , to change your name colour?
knackworst is offline  
Old 27/09/2010, 10:02 AM   #2
Code_Red
Gangsta
 
Code_Red's Avatar
 
Join Date: Jul 2010
Location: LeChuck's secret fortress.
Posts: 717
Reputation: 123
Default Re: /colour cmd?

SetPlayerColor
__________________

Credit to Gortex!
Code_Red is offline  
Old 27/09/2010, 10:04 AM   #3
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: /colour cmd?

how to make /setplayercolor?
knackworst is offline  
Old 27/09/2010, 10:20 AM   #4
[Lsrcr]Rafa
Huge Clucker
 
Join Date: Jul 2010
Posts: 248
Reputation: 0
Default Re: /colour cmd?

u need to make stuff down this

pawn Code:
if( !strcmp(cmdtext,"/color",true ))
{
     //Stuff !!!
     return 1;
}

I can't explain now cause am in school ...
Cya
__________________
[Lsrcr]Rafa is offline  
Old 27/09/2010, 10:27 AM   #5
Basicz
Gangsta
 
Basicz's Avatar
 
Join Date: Aug 2010
Location: Indonesia, Surabaya.
Posts: 605
Reputation: 35
Default Re: /colour cmd?

pawn Code:
if(!strcmp(cmdtext, "/Red", true))
{
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
if(!strcmp(cmdtext, "/Grey", true))
{
SetPlayerColor(playerid, 0xAFAFAFAA);
return 1;
}

Add more colours.
__________________

- Quina, from the game " Final Fantasy IX "
Basicz is offline  
Old 27/09/2010, 10:33 AM   #6
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: /colour cmd?

I want a colour command with over 200 colours, like awesome stuntages.. you can customize your color there with 255 255 255
red green blue
knackworst is offline  
Old 27/09/2010, 10:35 AM   #7
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: /colour cmd?

Then you need an RGB to hex function.

EDIT: This might work - http://forum.sa-mp.com/showthread.php?t=143589
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 27/09/2010, 10:37 AM   #8
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: /colour cmd?

what's that?

oh and btw, I want regular players to be able to set their colours...
not that an admin always have to /setplayercolour
knackworst is offline  
Old 27/09/2010, 10:41 AM   #9
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: /colour cmd?

RGB = 0-255, HEX = 00-FF
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 27/09/2010, 10:46 AM   #10
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: /colour cmd?

So if I put that script in my server I can use /colour <> <> <> ?
knackworst is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing admins colour ( duty colour ) Chivava Help Archive 7 01/07/2011 03:38 PM
Houw to Change [OOC chat colour and IC chat colour] help please Karl115 Help Archive 5 27/05/2010 08:39 PM
Different Colour For Car Tigerbeast11 Help Archive 28 07/11/2009 10:23 AM
Colour Help killer__577 Help Archive 3 22/05/2009 08:54 PM
Car Colour killer__577 Help Archive 2 06/05/2009 05:03 PM


All times are GMT. The time now is 11:11 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.