SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/08/2015, 07:25 PM   #2701
appleomax
Big Clucker
 
Join Date: Dec 2012
Location: Lithuania
Posts: 52
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Can someone tell me what's the default color code of the text in these dialogs?

https://wiki.sa-mp.com/wiki/Dialog_Styles
appleomax is offline   Reply With Quote
Old 21/08/2015, 09:43 PM   #2702
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by appleomax View Post
Can someone tell me what's the default color code of the text in these dialogs?

https://wiki.sa-mp.com/wiki/Dialog_Styles

Use http://html-color-codes.info/colors-from-image/ if you don't have photoshop already.
[KHK]Khalid is offline   Reply With Quote
Old 21/08/2015, 11:57 PM   #2703
Kimossab
Huge Clucker
 
Kimossab's Avatar
 
Join Date: Jul 2012
Location: Portugal
Posts: 484
Reputation: 108
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by [KHK]Khalid View Post
Use http://html-color-codes.info/colors-from-image/ if you don't have photoshop already.
You can use paint to get the color of a pixel
__________________
Who even cares about signatures?

ALL HAIL THE ASTERISK!
My Pastebinas.
Kimossab is offline   Reply With Quote
Old 01/09/2015, 05:29 PM   #2704
Amads
Huge Clucker
 
Amads's Avatar
 
Join Date: Feb 2012
Location: Poland
Posts: 206
Reputation: 51
Default Re: Little coding questions - For general minor queries 5

Is there a fix for SetActorFacingAngle? It's broken.
Amads is offline   Reply With Quote
Old 09/09/2015, 06:32 PM   #2705
Gabolla
Banned
 
Join Date: Oct 2014
Posts: 31
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Guys I am trying to downlod firescripts for ravens script It's load failed why?! any Idea I did everything right please reply now not on other time I need it right nowwww
Gabolla is offline   Reply With Quote
Old 10/09/2015, 03:42 PM   #2706
SpikY_
High-roller
 
SpikY_'s Avatar
 
Join Date: Jul 2014
Posts: 1,246
Reputation: 128
Default Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by Gabolla View Post
Guys I am trying to downlod firescripts for ravens script It's load failed why?! any Idea I did everything right please reply now not on other time I need it right nowwww
provide us the errors in your server log.
__________________
-
SpikY_ is offline   Reply With Quote
Old 10/09/2015, 04:22 PM   #2707
ArcHeLL
Little Clucker
 
Join Date: Mar 2011
Posts: 9
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Hey guys i try to make my chat have like Name(ID): *Message* but for some reason my name is black can you help me please?

Code:
public OnPlayerText(playerid, text[])
{
    new message[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    format(message,sizeof(message),"%s{00FF00}(%d):{FFFFFF} %s",name,playerid,text);
    SendClientMessageToAll(GetPlayerColor(playerid),message);
    return 0;
}
ArcHeLL is offline   Reply With Quote
Old 10/09/2015, 04:45 PM   #2708
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,852
Reputation: 675
Default AW: Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by ArcHeLL View Post
Hey guys i try to make my chat have like Name(ID): *Message* but for some reason my name is black can you help me please?

Code:
public OnPlayerText(playerid, text[])
{
    new message[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    format(message,sizeof(message),"%s{00FF00}(%d):{FFFFFF} %s",name,playerid,text);
    SendClientMessageToAll(GetPlayerColor(playerid),message);
    return 0;
}
You should read the note on the wiki

https://wiki.sa-mp.com/wiki/GetPlayerColor
Nero_3D is offline   Reply With Quote
Old 10/09/2015, 04:58 PM   #2709
ArcHeLL
Little Clucker
 
Join Date: Mar 2011
Posts: 9
Reputation: 0
Default Re: AW: Re: Little coding questions - For general minor queries 5

Quote:
Originally Posted by Nero_3D View Post
You should read the note on the wiki

https://wiki.sa-mp.com/wiki/GetPlayerColor
Thanks a lot!
ArcHeLL is offline   Reply With Quote
Old 14/09/2015, 02:35 PM   #2710
ArcHeLL
Little Clucker
 
Join Date: Mar 2011
Posts: 9
Reputation: 0
Default Re: Little coding questions - For general minor queries 5

Hey guys i'm trying to make a /kick command but for some reason the "\n" on the format function doesn't seem to work.. text appears as
Code:
You have been kicked by admin blabla Reason: somereason
instead of
Code:
You have been kicked by admin blabla
Reason: somereason
Here's the code:
Code:
if (strcmp("/kick", cmd, true) == 0)
	{
	    if(PlayerInfo[playerid][pAdmin]<3) return SendClientMessage(playerid,COLOR_RED,"ERROR: You need to be an admin to use this command");
	    new tmp[128],tmp2[128],id,reason[256];
	    tmp = strtok(cmdtext, idx);
	    tmp2 = strrest(cmdtext, idx);
	    if(strlen(tmp)==0) return SendClientMessage(playerid,COLOR_RED,"USAGE: /kick [id] [reason]");
	    if(strlen(tmp2)==0) return SendClientMessage(playerid,COLOR_RED,"USAGE: /kick [id] [reason]");
	    if(id==INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"ERROR: Player Not Connected!");
	    id = strval(tmp);
	    format(reason,sizeof(reason),"{FF0000}You have been kicked by admin {00FF00}%s{FF0000}!\n{FFFF00}Reason: {00FF00}%s",ReturnPlayerName(playerid),tmp2);
	    for(new i; i < 250; i++) SendClientMessage(id,-1, " ");
	    SendClientMessage(id,-1,reason);
	    DelayKick(id);
	    return 1;
	}
ArcHeLL is offline   Reply With Quote
Reply

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
how to make a soldier aotumaticly be general when the general dies ? AlbanianGuy Scripting Help 35 13/05/2012 03:35 PM
Minor problem Desert Help Archive 4 17/03/2010 06:24 PM
Counting with mysql queries actiwe Help Archive 2 26/02/2010 02:36 PM
SQL queries using GROUP BY Dabombber Help Archive 1 05/10/2009 07:47 PM


All times are GMT. The time now is 10:11 AM.


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