SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 26/05/2012, 09:31 AM   #1
cessil
High-roller
 
cessil's Avatar
 
Join Date: Apr 2009
Posts: 2,751
Reputation: 293
Default Looking for scripters/helpers? Post here!

1. Only post if you are looking for someone to help you, or want someone to write a script for you.

2. Do not reply to posts in this thread, PM them. This is not a discussion thread.

3. If you no longer need anyone to help you, edit your post and replace it with -Delete- (or something similar) and it will be deleted

4. Do not make multiple posts, post once per server.

5. Do not repeatedly request for your post to be deleted just to make a new one.

6. You must be the server owner.

Script request archive:

Script Request Thread #6

Script Request Thread #5

Script Request Thread #4

Script Request Thread #3

Script Request Thread #2

Script Request Thread #1

Last edited by cessil; 26/03/2014 at 02:21 AM.
cessil is offline   Reply With Quote
Old 22/06/2013, 11:52 AM   #2
mohammedsohailahmed
Little Clucker
 
Join Date: May 2012
Posts: 26
Reputation: 0
Default Re: Script Request Thread #6

I want a simple script to kill people through rcon. Example: /kill [id] [reason]. And it should show a notification to player saying ''You have killed by the rcon administrator.''
mohammedsohailahmed is offline   Reply With Quote
Old 22/06/2013, 01:01 PM   #3
Areax
Huge Clucker
 
Areax's Avatar
 
Join Date: Mar 2013
Location: Slovenia
Posts: 468
Reputation: 14
Default Re: Script Request Thread #6

Quote:
Originally Posted by mohammedsohailahmed View Post
I want a simple script to kill people through rcon. Example: /kill [id] [reason]. And it should show a notification to player saying ''You have killed by the rcon administrator.''
Code:
CMD:akill(playerid, params[])
{
    new targetid;
    if(sscanf(params, "u", targetid))return SendClientMessage(playerid, -1, "Usage: /akill [playerid]");
    if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid, -1, "You aren't RCON admin!");
    if(!IsPlayerConnected(targetid))return SendClientMessage(playerid, -1, "This player is not connected!");
    SetPlayerHealht(targetid, -1);
    SendClientMessage(targetid, -1, "You have killed by the rcon administrator.");
    return 1;
}
Areax is offline   Reply With Quote
Old 22/06/2013, 03:50 PM   #4
DerickClark
High-roller
 
DerickClark's Avatar
 
Join Date: Jul 2012
Posts: 1,569
Reputation: 9
Default Re: Script Request Thread #6

i'm looking for a /togtext to turn it on.

and the off one to

Code:
SendAdminText(playerid, command[], text[])
{
    new Name[24], Msg[128];
    GetPlayerName(playerid, Name, sizeof(Name));
    format(Msg, sizeof(Msg), "%s used: %s %s", Name, command, text);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(APlayerData[i][PlayerLevel] > 6)
            {
                SendClientMessage(i, 0xC9C9C9FF, Msg);
            }
        }
    }
    printf("%s used: %s %s", Name, command, text);
    return 1;
}
__________________
LS-CNR
DerickClark is offline   Reply With Quote
Old 22/06/2013, 04:23 PM   #5
Red_Dragon.
High-roller
 
Red_Dragon.'s Avatar
 
Join Date: Sep 2012
Posts: 1,405
Reputation: 46
Default Re: Script Request Thread #6

I need an SQL query that would allow me to look up and edit the stats on a player account. Bear in mind that the player accounts must be stored in a table called "accounts". I also need an SQL query that sets the admin level of all disabled accounts to 0, (disabled = 1 means disabled) and also in the table "accounts" with columns "AdminLevel" and "Disabled". Thank you in advance.
Red_Dragon. is offline   Reply With Quote
Old 22/06/2013, 04:37 PM   #6
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,143
Reputation: 685
Default Re: Script Request Thread #6

@Red_Dragon:

Code:
mysql_function_query(connectionHandle, "UPDATE `accounts` SET `AdminLevel` = 0 WHERE `disabled` = 1", false, "", "");

The first thing you're asking for would require me to know your variable/enum structure.
RealCop228 is offline   Reply With Quote
Old 22/06/2013, 04:49 PM   #7
Th3b3ast5
Big Clucker
 
Join Date: Feb 2013
Posts: 86
Reputation: -5
Default Re: Script Request Thread #6

I need a /purge command, which simply kicks all members from a faction. Whether they are offline or online.
Th3b3ast5 is offline   Reply With Quote
Old 22/06/2013, 05:22 PM   #8
Red_Dragon.
High-roller
 
Red_Dragon.'s Avatar
 
Join Date: Sep 2012
Posts: 1,405
Reputation: 46
Default Re: Script Request Thread #6

Quote:
Originally Posted by RealCop228 View Post
@Red_Dragon:

Code:
mysql_function_query(connectionHandle, "UPDATE `accounts` SET `AdminLevel` = 0 WHERE `disabled` = 1", false, "", "");

The first thing you're asking for would require me to know your variable/enum structure.
I can't fully understand you as I am not a professional in MySQL, but what variable/enum structure do you need ?
Can't it be done within the table "accounts" (that stores the players' accounts). Thank you for the other one !
Red_Dragon. is offline   Reply With Quote
Old 22/06/2013, 05:30 PM   #9
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,143
Reputation: 685
Default Re: Script Request Thread #6

Quote:
Originally Posted by Red_Dragon. View Post
I can't fully understand you as I am not a professional in MySQL, but what variable/enum structure do you need ?
Can't it be done within the table "accounts" (that stores the players' accounts). Thank you for the other one !
The table is where the data is stored, but I don't know the table structure. So, I couldn't give you working loading code. I can give you the query to GET the information, but you'll need to do the loading for yourself...

It would be:

Code:
"SELECT * FROM `accounts` WHERE `username` = '%s'"
Obviously you'll have to put that into a format line so you can replace the %s with a username during runtime. Also, if "username" isn't a valid field in your table, change it to whatever is the valid field to store someone's username.
RealCop228 is offline   Reply With Quote
Old 22/06/2013, 05:44 PM   #10
Immortal_LTU
Big Clucker
 
Join Date: Feb 2011
Location: Lithuania
Posts: 125
Reputation: 1
Default Re: Script Request Thread #6

Can anyone make save/load position for dini ?

P.S I have registration system.
Immortal_LTU 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
Suggestion For 'People Looking For Scripters/Helpers' freddy smyth General 12 04/05/2014 03:51 PM
Need help on Helpers DerickClark Scripting Help 2 08/02/2013 12:55 AM
Need help on Helpers DerickClark Scripting Help 4 23/01/2013 02:01 AM
Searching For Scripters [To All Scripters] Drizzy Help Archive 3 06/06/2010 03:14 PM


All times are GMT. The time now is 05:39 AM.


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