SA-MP Forums

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

Closed Thread
 
Thread Tools Display Modes
Old 06/01/2013, 11:19 AM   #3041
MadafakaPro
Big Clucker
 
Join Date: May 2012
Posts: 193
Reputation: -7
Default Re: Script Request Thread #5

I need someone to help me creating Faction system with /makeleader and /invite command i want it static no dynamic created from IG . I am using Y_INI and ZCMD .
Thanks in advance.
MadafakaPro is offline  
Old 06/01/2013, 12:57 PM   #3042
karam jaber
Little Clucker
 
Join Date: Sep 2012
Posts: 29
Reputation: 0
Post Re: Script Request Thread #5

hii , i want a command like that for admins [Admins Online]
if (strcmp("/admins", cmdtext, 10,........... to show that
[NameAdmin] [ID] [Manager/Leader/Admin/Mod/Co-Mod/Tester]
1= tester
2=co-mod
3=mod=
4=admin
5=leader
6-manager
___________________________________
and i want the colour for manager like that "Cyan"
For Leader "Blue"
For Admin "Red"
For Mod+Co+Tester "Red"
____________________________________
Thanks alot for who do this command for me please do it i need it realy
Thanks Agian
karam jaber is offline  
Old 06/01/2013, 01:26 PM   #3043
ajam123
Huge Clucker
 
Join Date: May 2012
Location: United Kingdom
Posts: 364
Reputation: -12
Default Re: Script Request Thread #5

Anyone can give me " Business Script like Raven's Roleplay? " Thanks. I'll +Rep if you help me.
__________________
Skype: Damian Daci
ajam123 is offline  
Old 06/01/2013, 01:29 PM   #3044
karam jaber
Little Clucker
 
Join Date: Sep 2012
Posts: 29
Reputation: 0
Post Re: Script Request Thread #5

Quote:
Originally Posted by [HLF]Southclaw View Post
I posted this on the last page!

You can easily edit it for your needs though:

pawn Code:
#define MAX_ADMINS          (somevalue)
#define MAX_ADMIN_LEVELS    (somevalue)
#define MAX_ADMIN_NAME      (16)


enum E_ADMIN_DATA
{
    admin_Name[MAX_ADMIN_NAME],
    admin_Colour[8]
}


new AdminData[MAX_ADMIN_LEVELS][E_ADMIN_DATA]=
{
    {"Tester", "{FFFF00}"},
    // Add the rest of your admin types here.
}


CMD:admins(playerid, params[])
{
    new
        list[ MAX_ADMINS * (8 + MAX_PLAYER_NAME + MAX_ADMIN_NAME + 1) + 27], // Allocate enough space for a colour code, each admin name, admin title and a \n character
        name[MAX_PLAYER_NAME];

    list = "Admins Currently Online:\n\n"; // the ^extra 27 characters
       
    foreach(new i : Player) // Loop through connected players
    {
        if(gPlayerData[i][AdminLevel] > 0) // If a player is an admin (don't forget to get your own variable name!)
        {
            GetPlayerName(i, name, MAX_PLAYER_NAME); // Get their name
            strcat(list, AdminData[gPlayerData[i][AdminLevel]][admin_Colour]); // Append a colour based on their level
            strcat(list, name); // Append this name to the list
            strcat(list, " (");
            strcat(list, AdminData[gPlayerData[i][AdminLevel]][admin_Name]); // Append their admin name
            strcat(list, ")\n"); // Append a newline character
        }
    }
   
    ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Admins", list, "Close", ""); // Show as a dialog.
   
    return 1;
}
i dnt want this command like that i want it like that:
if (strcmp("/admins",....
not like that
CMD:admins(playerid, params[])
cuz its not working with me
Sry please if u can do for me do it
karam jaber is offline  
Old 06/01/2013, 05:28 PM   #3045
diego_p11
Big Clucker
 
Join Date: Aug 2011
Posts: 70
Reputation: 5
Default Re: Script Request Thread #5

Help with slap cmd
Hi, i would life to make a slap cmd, which with this I try to prevent health hackers.
What it should do is, an admin type /slap [player id]
And the player go got slaped set his position in a really high altitude, and every second reduce his health a 15%.
I dunno how to doit, that why I am making these topic.
If its posible with dcmd

Diego =)
diego_p11 is offline  
Old 06/01/2013, 07:21 PM   #3046
Affan
Huge Clucker
 
Affan's Avatar
 
Join Date: Dec 2012
Posts: 390
Reputation: 28
Default Re: Script Request Thread #5

pawn Code:
dcmd_slap(playerid, params[])
{
    if(!CmdLevelCheck(playerid,"slap")) return CmdLevelError(playerid,"slap");
    new id,string[128],Float:Health;
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, RED, "USAGE: /SLAP [ID / NAME]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, RED, "This player is offline");
    format(string,sizeof(string),"Administrator %s has slapped %s",AdminName(playerid),Name(id));
    GetPlayerHealth(id,Health),SendClientMessageToAll(YELLOW,string);
    SetPlayerHealth(id,Health-GetConfig("SlapHealth"));
    SendCommandMsg(playerid,"slap");
    return 1;
}
Affan is offline  
Old 07/01/2013, 02:04 AM   #3047
Antonioh
Big Clucker
 
Join Date: Jan 2013
Location: Egypt,Cairo
Posts: 70
Reputation: 0
Default Re: Script Request Thread #5

Hello Can you create for me Please? /mask on/off > to hide/show my name etc
And /givemask << To give mask for people only [for admin only]
And /removemask << to remove the mask from people [for admin only]
Antonioh is offline  
Old 07/01/2013, 11:25 AM   #3048
MarshallNero
Banned
 
Join Date: Jan 2013
Posts: 178
Reputation: 25
Default Re: Script Request Thread #5

Hello can you create me a trunk system ?

/trunk open
/trunk close
/trunk store
/trunk take

thank you!
MarshallNero is offline  
Old 07/01/2013, 11:39 PM   #3049
[BB]ExpL0sIv3
Little Clucker
 
Join Date: Apr 2010
Posts: 5
Reputation: 0
Default Antilag hit detection

Hey guys,

I really would like to have a script which makes shooting at skin possible for any ping and any FPS-Rate.

I heard about the function OnPlayerTargetPlayer, with it itīs possible to get informaton if a player is aiming at a skin.
But now I need to set up a code that also knows if a player is currently shooting and with what kind of weapon. So that it gives the exact damage. Can someone help me with that? It also should work with cbug properly.

Key features:

-> Hit detection when aiming on skin for all pings and all fps rates
-> Script as Filterscript
-> Deactivating and activating script with a command (standart mode should be activated)
-> C-Bug supported

Thats the most important stuff it needs to have, some additional I also have in mind but we will talk at PM if this would also be possible. If you just want to do this its still good for me.


Feel free to PM me and tell me how much bucks you want for it since itīs some work I guess. I pay via PayPal.

Greets and Thanks
[BB]ExpL0sIv3 is offline  
Old 08/01/2013, 02:43 AM   #3050
JustinAn
Huge Clucker
 
JustinAn's Avatar
 
Join Date: Apr 2012
Location: stfu
Posts: 236
Reputation: 28
Default Re: Script Request Thread #5

Quote:
Originally Posted by Antonioh View Post
Hello Can you create for me Please? /mask on/off > to hide/show my name etc
And /givemask << To give mask for people only [for admin only]
And /removemask << to remove the mask from people [for admin only]


pawn Code:
new GiveMask[MAX_PLAYERS]; // Top of script
new MaskOn[MAX_PLAYERS]; // Top of script

//Commands can be anywhere except not in call backs like OnPlayerCommandText, or OnPlayerSpawn.

CMD:givemask(playerid, params[])
{
    new targetid;
    if(IsPlayerAdmin(playerid))
    {
        if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "USAGE: /givemask [playerid]");
        else if(targetid == INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "Player not online !");
        else
        {
            if(GiveMask[targetid] == 1)
            {
                SendClientMessage(playerid, -1, "Player already has a mask!");
            }
            else
            {
                GiveMask[targetid] = 1;
            }
        }
    }
    else return SendClientMessage(playerid, -1, "You're not authorized to use this command !");
    return 1;
}

CMD:mask(playerid, params[])
{
    if(GiveMask[playerid] == 1)
    {
        if(MaskOn[playerid] == 1)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    ShowPlayerNameTagForPlayer(i, playerid, 0);
                }
            }
            MaskOn[playerid] = 1;
            SendClientMessage(playerid, 1, "* You've put your mask on!");
        }
        else if(MaskOn[playerid] == 0)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    ShowPlayerNameTagForPlayer(i, playerid, 1);
                }
            }
            SendClientMessage(playerid, 1, "* You've put your mask off!");
            MaskOn[playerid] = 0;
        }
    }
    return 1;
}

These commands are only used by ZCMD and sscanf.
Links..

ZCMD: http://forum.sa-mp.com/showthread.php?t=91354
SSCANF: http://forum.sa-mp.com/showthread.php?t=120356
__________________
JustinAn is offline  
Closed Thread

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
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 05:08 PM
Script Request Thread #2 Dol Help Archive 807 28/07/2009 10:09 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 12:15 PM


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


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