SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 28/07/2009, 10:14 AM   #1
clean180ollie
Huge Clucker
 
Join Date: Jun 2009
Posts: 260
Reputation: 0
Default Re: Script Request Thread #3

Quote:
Originally Posted by kaisersouse
This thread is for people to post gamemode and filterscript ideas, in an effort to find people willing to help them make it. Please keep all requests to this thread, and do NOT flame or bump!

Also keep in mind...."code can be stolen...ideas cannot"

Have at it....
Script Request Thread #1

Script Request Thread #2


Quote:
Originally Posted by Iamsosk
Can someone please make or give me a script where can i get working /hotwire command, i need it for RP servers, for carjacker job.Ive seen this on servers using moderntopia gamemode.Someone please give me this.If you want, i can explain it more.

And BTW, hope u understand what im sayng and soz for my bad englist.
hmm I got cha

I pmed you
clean180ollie is offline  
Old 28/07/2009, 12:30 PM   #2
Dj_maryo1993
Huge Clucker
 
Join Date: Feb 2009
Posts: 250
Reputation: 6
Default Re: Script Request Thread #3

I had seached but i did not find , i would like someting that will kick/ban player if it says an IP adress .
Can someone help ?
__________________
Sorry for my bad english
Dj_maryo1993 is offline  
Old 28/07/2009, 04:25 PM   #3
refshal
High-roller
 
Join Date: Jun 2009
Location: Denmark
Posts: 1,070
Reputation: 8
Default Re: Script Request Thread #3

I think this is what you need:

pawn Code:
public OnPlayerConnect(playerid)
{
new ip[20];
GetPlayerIp(playerid, ip, sizeof(ip));
if(strcmp(ip, "TypeInTheIPHere", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You've been banned");
Ban(playerid);
return 1;
}
return 1;
}
refshal is offline  
Old 28/07/2009, 05:49 PM   #4
Cio-Rap
Little Clucker
 
Join Date: Jul 2009
Posts: 9
Reputation: 0
Default Re: Script Request Thread #3

еddy!

when someone enters on the server he must register at www. godfather-rp . com to play, I want to register directly in the game.

Cio-Rap is offline  
Old 28/07/2009, 06:56 PM   #5
user226
Big Clucker
 
Join Date: Feb 2009
Posts: 156
Reputation: 0
Default Re: Script Request Thread #3

I created code:

Code:
	if(strcmp(cmdtext, "/moxra", true, 6) == 0)
	{
	if(cmdtext[7] == 32 && cmdtext[6] != EOS) return SendClientMessage(playerid, 0xFAFAFAFF, "do not good !!!");
	else if(strcmp(cmdtext[7], "sychka", true) == 0)
	{
	SendClientMessageToAll(0xFFFFFF00,color,"GOOD!");
	}
	else SendClientMessage(playerid, 0xFAFAFAFF, "do not good !");
	return true;
	}
Where error this code wrong?
When I write / moxra, Answer: SERVER: Unknomw command.
But when I write, / moxra dsaasdas, / moxra sychka, etc all this good!
I know that the bug is likely in this line:
Code:
if(cmdtext[7] == 32 && cmdtext[6] != EOS) return SendClientMessage(playerid, 0xFAFAFAFF, "do not good !!!");
Help Me please...
user226 is offline  
Old 28/07/2009, 07:02 PM   #6
refshal
High-roller
 
Join Date: Jun 2009
Location: Denmark
Posts: 1,070
Reputation: 8
Default Re: Script Request Thread #3

Quote:
Originally Posted by Cio-Rap
еddy!

when someone enters on the server he must register at www. godfather-rp . com to play, I want to register directly in the game.

I think you have to remove the forum-register thingy in your script. If you downloaded the script, then ask in the script's thread. But if you don't know how to remove it, you can ask me about further information.
refshal is offline  
Old 28/07/2009, 08:34 PM   #7
arnutisz
Big Clucker
 
Join Date: Nov 2007
Posts: 188
Reputation: 0
Default Re: Script Request Thread #3

Quote:
Originally Posted by Devine
I'd like a simple command for admins - /forward. It sends the admin like.. 10 feet forward. Please script this.
pawn Code:
if(strcmp(cmdtext, "/forward", true) == 0)
{
    if(IsPlayerAdmin(playerid)) return 0;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y+10, Z);
    return 1;
}
arnutisz is offline  
Old 28/07/2009, 09:41 PM   #8
[Sk]Noob
Big Clucker
 
Join Date: May 2009
Posts: 102
Reputation: 0
Default Re: Script Request Thread #3

I need a command that will show Textdraw to the passeger in the car and the driver...

I need the Text draw like this
Code:
Counter : 10
It'll start from 10 and will go up every 5 seconds like hmm

10....15....20......25......30 every 5 seconds

for the passeger and the driver.
[Sk]Noob is offline  
Old 28/07/2009, 09:48 PM   #9
Dj_maryo1993
Huge Clucker
 
Join Date: Feb 2009
Posts: 250
Reputation: 6
Default Re: Script Request Thread #3

Quote:
Originally Posted by еddy
I think this is what you need:

pawn Code:
public OnPlayerConnect(playerid)
{
new ip[20];
GetPlayerIp(playerid, ip, sizeof(ip));
if(strcmp(ip, "TypeInTheIPHere", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "You've been banned");
Ban(playerid);
return 1;
}
return 1;
}
You undestand wrong , when someone say ingame something like "join my server 1.1.11.1:7777 " or something like that , then the script will kick the player.
__________________
Sorry for my bad english
Dj_maryo1993 is offline  
Old 29/07/2009, 12:36 AM   #10
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Script Request Thread #3

Quote:
Originally Posted by Dj_maryo1993
You undestand wrong , when someone say ingame something like "join my server 1.1.11.1:7777 " or something like that , then the script will kick the player.
Search, this was done before. Search for something like anti-server-adv.
Correlli is offline  
 

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
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


All times are GMT. The time now is 03:53 AM.


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