Help mee
#1

who can help me ?
i want to make this script like when the admin is /aduty , when he want to talk in /b chat the name is green colour.

/b command i need it

sorry for eng please send me a script to work for horizon gamemode

INCLUDE
Code:
#include <a_samp>

#include <a_zones>
#include <streamer>
#include <foreach>
#include <progress>
#include <ZCMD>
#include <YSI/y_timers.inc>
#include <yom_buttons>
#include <sscanf2>
#include <audio>
Reply
#2

*sigh* How about trying to do it a bit by yourself so we can actually help instead of writing the entire script ourselves? Create an IsADuty local variable to determine if the player is on aduty or not, it is for future usage. Then hit CTRL+F and type CMD:b(playerid,params[]) and create an if statement like this;

PHP Code:
if(IsADuty[playerid] == 1) { 
then define a string, a name variable like this;
PHP Code:
new string[128],name[MAX_PLAYER_NAME]; // Don't forget to optimize the string's cells for your needs. 
Then get the player's name by;

PHP Code:
GetPlayerName(playerid,name,sizeof(name)); 
Then format your string by;
PHP Code:
format(string,sizeof(string),"(( {00FF00}%s: {FFFFFF}%s ))",name,your sscanf /b text parameter here);
YourLocalChatFunctionHere 
then close the bracket with } and it should work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)