SA-MP Forums

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

Closed Thread
 
Thread Tools Display Modes
Old 09/02/2013, 08:43 PM   #21
Noles2197
Big Clucker
 
Noles2197's Avatar
 
Join Date: Jul 2011
Location: Houston, Texas
Posts: 124
Reputation: 6
Default Re: Script Request Thread #6

Using y_ini, I want a simple script that loads pickups.
X coord, Y coord, Z coord, and model id of the pickup.
I just want to be able to start my game mode and it will load all of the pickups and their coordinates. I'd assume it would be simple for an experienced scripter, but I would really appreciate the help.
Noles2197 is offline  
Old 09/02/2013, 10:32 PM   #22
LarzI
High-roller
 
LarzI's Avatar
 
Join Date: Apr 2007
Location: Norway
Posts: 2,628
Reputation: 136
Default Re: Script Request Thread #6

Quote:
Originally Posted by Bicentric View Post
You're saying it works but doesn't work? What exactly happens.
He wants to set a server password by command.
__________________


NEW: [FS] Simple Cellphones

if( strfind( title, "REP", true ) != -1 )
{________________________________________
Sigh();__________________________
}________________________________________


LarzI is offline  
Old 10/02/2013, 02:54 AM   #23
DerickClark
High-roller
 
Join Date: Jul 2012
Posts: 1,754
Reputation: 14
Default Re: Script Request Thread #6

I need a /Tmute for timer mute
the Timer
auto un mute that player.

Like dis

/mute [id] [timer here] [Reason]
Admin Test muted test3 Reason:Spam.


+
/giveallmoney [how much] give ever one $
__________________
Working on a Trucking Server from scratch.
There are cool features, like /workmenu /convoy /pay(When Police Officer asked you for a fine) and more etc.

Last edited by DerickClark; 10/02/2013 at 03:35 AM.
DerickClark is offline  
Old 10/02/2013, 05:30 AM   #24
Strier
Huge Clucker
 
Strier's Avatar
 
Join Date: Dec 2012
Location: United states
Posts: 267
Reputation: 22
Default Respuesta: Re: Script Request Thread #6

Quote:
Originally Posted by DerickClark View Post
I need a /Tmute for timer mute

/giveallmoney [how much] give ever one $
with zcmd...

pawn Code:
CMD:giveallmoney(playerid,params[])
        {
    if(PlayerInfo[playerid][Level] >= ? //Replace with whatsoever you're using
            {  
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /giveallcash [Amount]");
        new amount = strval(params), string[128];
        for(new i = 0; i < MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i)) {
                GivePlayerMoney(i,amount);
            }
        }
        format(string,sizeof(string),"Administrator \"%s\" has given all players '$%d'", pName(playerid), amount );
        return SendClientMessageToAll(blue, string);
    } else return SendClientMessage(playerid,-1 ," Screw you, you're not level ?" );
}
Strier is offline  
Old 10/02/2013, 11:20 AM   #25
NexisHotel
Little Clucker
 
Join Date: Nov 2012
Posts: 45
Reputation: -1
Post Re: Script Request Thread #6

Hello , i need arms dealer job script for my Roleplay Server This Script include :

Arms Dealer = That you can /join

Arms Dealer Mat Pickup

This 2 only please give me script , tHanks
NexisHotel is offline  
Old 10/02/2013, 11:31 AM   #26
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,811
Reputation: 701
Default Re: Script Request Thread #6

Quote:
Originally Posted by DerickClark View Post
I need a /Tmute for timer mute
the Timer
auto un mute that player.

Like dis

/mute [id] [timer here] [Reason]
Admin Test muted test3 Reason:Spam.


+
/giveallmoney [how much] give ever one $
You can make the unmute command. All you need to do is add this: stop muteTimer[PLAYERIDGOESHERE] and call what's in the timer callback.

pawn Code:
new
    muteTimer[MAX_PLAYERS],
    bool:muted[MAX_PLAYERS];

CMD:tmute(playerid, params[])
{
    new iID, iTime, szReason[50];
    if(sscanf(params, "uds[49]", iID, iTime, szReason))
        return SendClientMessage(playerid, COLOR_WHITE, "SYNTAX: /tmute [nick/id] [time (in minutes)] [reason]);
    if(iID == INVALID_PLAYER_ID)
        return SendClientMessage(playerid, COLOR_RED, "
ERROR: Invalid nick/ID specified.");
    if(strlen(reason) > 49)
        return SendClientMessage(playerid, COLOR_RED, "
ERROR: Reason message must be shorter than 50 characters.");
    if(iTime > 60)
        return SendClientMessag(playerid, COLOR_RED, "
ERROR: You cannot set the minutes longer than 60 (1 hour).");
   
    muted[playerid] = true;
    muteTimer[playerid] = defer timerMuted[iTime*60000](playerid);
   
    new szString[128], szName[MAX_PLAYER_NAME];
    GetPlayerName(iID, szName, sizeof(szName));
    format(szString, sizeof(szString), "
You have muted %s(%d) for %d mintues. Reason: %s", szName, iID, iTime, szReason);
    SendClientMessage(playerid, COLOR_RED, szString);
    GetPlayerName(playerid, szName, sizeof(szName));
    format(szString, sizeof(szString), "
You have been muted by %s(%d) for %d minutes. Reason: %s" szName, playerid, iTime, szReason);
    SendClientMessage(playerid, COLOR_RED, szString);
    return 1;
}

timer timerMuted[60000](playerid)
{
    muted[playerid] = false;
    SendClientMessage(playerid, COLOR_WHITE, "
You have been unmuted.");
    return 1;
}

CMD:giveallcash(playerid, params[])
{
    if(sscanf(params, "
d", iTotal))
        return SendClientMessage(playerid, COLOR_WHITE, "
SYNTAX: /giveallcash [amount]");
   
    for(new i = 0; i < MAX_PLAYERS; i++) GivePlayerMoney(i, iTotal);
   
    new szString[128], szName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, szName, sizeof(szName));
    format(szString, sizeof(szString), "
** %s(%d) has given everyone $%d. Have fun, don't spend it all in one place!", szName, playerid, iTotal);
    SendClientMessageToAll(COLOR_RED, szString);
    return 1;
}

You'll need YSI's y_timers include for this.
__________________



Scenario is offline  
Old 10/02/2013, 12:39 PM   #27
Cxnnor
Big Clucker
 
Cxnnor's Avatar
 
Join Date: May 2012
Posts: 176
Reputation: 12
Default Re: Script Request Thread #6

I need a simple /login and /register. With enum's saving the password.
__________________


Mapper & Scripter.
__________________________

[MAP] Unique Church
Cxnnor is offline  
Old 10/02/2013, 12:42 PM   #28
Scenario
Godfather
 
Scenario's Avatar
 
Join Date: Feb 2010
Location: Heaven
Posts: 7,811
Reputation: 701
Default Re: Script Request Thread #6

Quote:
Originally Posted by Cxnnor View Post
I need a simple /login and /register. With enum's saving the password.
That's more than just two commands, pal. Go visit the filterscripts/gamemodes sections, you'll find what you're looking for in there.
__________________



Scenario is offline  
Old 10/02/2013, 01:15 PM   #29
Insulin
Banned
 
Join Date: Nov 2012
Posts: 147
Reputation: 9
Default Re: Script Request Thread #6

need a script in whic hrutler can throw bobms, when we press n
Insulin is offline  
Old 10/02/2013, 11:21 PM   #30
Phil_Cutcliffe
Huge Clucker
 
Phil_Cutcliffe's Avatar
 
Join Date: Dec 2011
Location: United Kingdom, London
Posts: 337
Reputation: 7
Default [NEW] Anti-Money Cheat idea

So everyone has a problem with Anti-Cheat right?

I'm getting pretty good with this scripting stuff and starting to understand how it is working. But I have an idea for
an Anti-Money cheat!

Ok so here is how it will work

IF getplayermoney OR getplayercash SENT "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will allow this to happen
and do nothing about it.

IF getplayermoney OR getplayercash DID NOT SEND "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will NOT allow this to happen and reverse the money (like normal anti cheats just if it was +500 it will -500)

I'm not sure if I explained myself correctly but if ANYONE knows how I can write this in code then we have ourselves a beauty of an Anti-Cheat!

That has gotta be +1 right there!!
Phil_Cutcliffe 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
Script Request Thread #5 jameskmonger Help Archive 8 06/03/2011 12:42 PM
Script Request Thread #4 dugi Help Archive 1593 31/10/2010 11:08 AM
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 04:08 PM
Script Request Thread #2 Dol Help Archive 807 28/07/2009 09:09 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


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


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