SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Server Support (https://forum.sa-mp.com/forumdisplay.php?f=19)
-   -   Looking for scripters/helpers? Post here! (https://forum.sa-mp.com/showthread.php?t=447813)

cessil 26/05/2012 09:31 AM

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

mohammedsohailahmed 22/06/2013 11:52 AM

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.''

Areax 22/06/2013 01:01 PM

Re: Script Request Thread #6
 
Quote:

Originally Posted by mohammedsohailahmed (Post 2580532)
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.''

pawn 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;
}

DerickClark 22/06/2013 03:50 PM

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;
}


Red_Dragon. 22/06/2013 04:23 PM

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.

Scenario 22/06/2013 04:37 PM

Re: Script Request Thread #6
 
@Red_Dragon:

pawn 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.

Th3b3ast5 22/06/2013 04:49 PM

Re: Script Request Thread #6
 
I need a /purge command, which simply kicks all members from a faction. Whether they are offline or online.

Red_Dragon. 22/06/2013 05:22 PM

Re: Script Request Thread #6
 
Quote:

Originally Posted by RealCop228 (Post 2580880)
@Red_Dragon:

pawn 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 !

Scenario 22/06/2013 05:30 PM

Re: Script Request Thread #6
 
Quote:

Originally Posted by Red_Dragon. (Post 2580943)
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:

pawn 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. :p

Immortal_LTU 22/06/2013 05:44 PM

Re: Script Request Thread #6
 
Can anyone make save/load position for dini ?

P.S I have registration system.


All times are GMT. The time now is 04:01 PM.

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