SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/03/2014, 08:07 PM   #1
KarlCassidy
Little Clucker
 
KarlCassidy's Avatar
 
Join Date: Jan 2014
Location: Dublin, Ireland
Posts: 26
Reputation: 0
Default Need a bit of help for scripting

Hello there,

I have recently created my very own server. I currently have the Vortex Roleplay Gamemode (Here is the forum and http://forum.sa-mp.com/showthread.php?t=162379 and here is the download link http://www.mediafire.com/download/b4...ows_server.zip)

I love the gamemode and I think it is really good. But I want some changes to it. If anyone could help me that'd be great.

What I want:

I want the paychecks to be lowered down to $500. They are currently $15,000.

I want the /n(ewbie) chat to have a green colour like this:

I want the /b command to look like this:
KarlCassidy is offline   Reply With Quote
Old 21/03/2014, 08:10 PM   #2
KarlCassidy
Little Clucker
 
KarlCassidy's Avatar
 
Join Date: Jan 2014
Location: Dublin, Ireland
Posts: 26
Reputation: 0
Default Re: Need a bit of help for scripting

One more thing:

If someone could make the /me's and /do's this colour I would really appreciate it also.
KarlCassidy is offline   Reply With Quote
Old 21/03/2014, 08:26 PM   #3
BigBrainAFK
Big Clucker
 
Join Date: Mar 2014
Location: Germany
Posts: 74
Reputation: 3
Default Re: Need a bit of help for scripting

wrong section
BigBrainAFK is offline   Reply With Quote
Old 21/03/2014, 08:47 PM   #4
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,133
Reputation: 445
Default Re: Need a bit of help for scripting

pawn Code:
CMD:me(playerid, params[])
{
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /me [action]");
    new string[128];
    format(string, sizeof(string), "{FF8000}* {C2A2DA}%s %s", GetPlayerNameEx(playerid), params);
    ProxDetectorWrap(playerid, string, 92, 30.0, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}

pawn Code:
CMD:b(playerid, params[])
{
    if(gPlayerLogged{playerid} == 0)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
        return 1;
    }
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /b [local ooc chat]");
    new string[128];
    format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    return 1;
}

For the newb something like
pawn Code:
format(string, sizeof(string), "[N] Player {5CE6E6}%s{5CE6E6}", GetPlayersName(playerid));
bla bla bla
Abagail is offline   Reply With Quote
Old 21/03/2014, 09:32 PM   #5
KarlCassidy
Little Clucker
 
KarlCassidy's Avatar
 
Join Date: Jan 2014
Location: Dublin, Ireland
Posts: 26
Reputation: 0
Default Re: Need a bit of help for scripting

Quote:
Originally Posted by Abagail View Post
pawn Code:
CMD:me(playerid, params[])
{
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /me [action]");
    new string[128];
    format(string, sizeof(string), "{FF8000}* {C2A2DA}%s %s", GetPlayerNameEx(playerid), params);
    ProxDetectorWrap(playerid, string, 92, 30.0, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}

pawn Code:
CMD:b(playerid, params[])
{
    if(gPlayerLogged{playerid} == 0)
    {
        SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
        return 1;
    }
    if(isnull(params)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /b [local ooc chat]");
    new string[128];
    format(string, sizeof(string), "%s: (( %s ))", GetPlayerNameEx(playerid), params);
    ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
    return 1;
}

For the newb something like
pawn Code:
format(string, sizeof(string), "[N] Player {5CE6E6}%s{5CE6E6}", GetPlayersName(playerid));
bla bla bla
Thanks a million lad, you're a star.
KarlCassidy is offline   Reply With Quote
Old 23/03/2014, 12:24 AM   #6
KarlCassidy
Little Clucker
 
KarlCassidy's Avatar
 
Join Date: Jan 2014
Location: Dublin, Ireland
Posts: 26
Reputation: 0
Default Re: Need a bit of help for scripting

How do I implement that to my server?
KarlCassidy 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
Who/what inspired you to start scripting? How did you start? What now? What are you planning for your scripting future? DanishHaq Everything and Nothing 30 06/03/2015 03:49 PM
Offering FREE scripting help && co-scripting sleepysnowflake Scripting Help 0 09/10/2012 07:53 PM
Scripting Help for New server, moved to scripting disscussion Guardian Help Archive 2 03/06/2009 06:29 AM


All times are GMT. The time now is 06:33 PM.


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