SA-MP Forums

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

Closed Thread
 
Thread Tools Display Modes
Old 29/06/2012, 10:04 AM   #2321
antonisrodos94
Big Clucker
 
antonisrodos94's Avatar
 
Join Date: Sep 2011
Location: server.nemexis.net:7777
Posts: 122
Reputation: 4
Default Re: Script Request Thread #5

Hi i search for Taxi company or tax job thanx
__________________
-Greek Freeroam-[0.3z]

IP: 178.33.168.72:9105
Mode: Greek Freeroam[0.3z]
Map: San Andreas Los Santos

antonisrodos94 is offline  
Old 29/06/2012, 10:08 AM   #2322
Robert West
Banned
 
Join Date: Apr 2012
Location: Tunisia
Posts: 207
Reputation: 15
Default Re: Script Request Thread #5

I need mask system (/mask [on off]) with zcmd , that only player lvl 8 can use it
Robert West is offline  
Old 29/06/2012, 06:18 PM   #2323
pasha97
Gangsta
 
pasha97's Avatar
 
Join Date: Feb 2012
Location: Voronezh,Russia
Posts: 651
Reputation: 60
Default Re: Script Request Thread #5

Hey! I am looking for small script of animations and special actions menu, where you can set some animations and special actions (in dialog).Like piss,sit,cover,talk,drunk etc...
__________________
pasha97 is offline  
Old 29/06/2012, 09:51 PM   #2324
Johnny_Robins
Big Clucker
 
Join Date: Sep 2011
Posts: 107
Reputation: 8
Default Re: Script Request Thread #5

I need to be able to change the model of a gate that I made with my system. Can someone help me make that.

Code:
	if(strcmp(cmd, "/editgate", true) == 0)
	{
	    if(PlayerInfo[playerid][pAdmin] >= 1337)
	    {
	        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [name] [amount]");
				SendClientMessage(playerid, GREY, "Available names: location, owner, x, y, z, rotx, roty, rotz");
				return 1;
			}
			new gate = strval(tmp);
			if(gate < 1 || gate > MAX_GATES) { SendClientMessage(playerid, GREY, "Gate can't be below 1 or above 150."); return 1; }
			if(!gateidtaken[gate]) return SendClientMessage(playerid, GREY, "    ID not taken.");
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [name] [amount]");
				SendClientMessage(playerid, GREY, "Available names: location, owner, x, y, z, rotx, roty, rotz");
				return 1;
			}
			if(strcmp(tmp,"location",true) == 0)
			{
				new Float:x, Float:y, Float:z;
				GetPlayerPos(playerid, x, y, z);
				GateInfo[gate][gateX] = x;
				GateInfo[gate][gateY] = y;
				GateInfo[gate][gateZ] = z;
  			    SetDynamicObjectPos(GateInfo[gate][gateID], x, y, z);
				return 1;
			}
			if(strcmp(tmp,"owner",true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [owner] [playerid/name] [slot]");
			        return 1;
       			}
       			giveplayerid = ReturnUser(tmp);
       			tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [owner] [playerid/name] [slot]");
			        return 1;
       			}
       			new slot = strval(tmp);
       			if(slot == 1)
  			    {
					gatekey[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 2)
				{
					gatekey2[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 3)
  			    {
					gatekey3[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 4)
				{
					gatekey4[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 5)
  			    {
					gatekey5[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 6)
				{
					gatekey6[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 7)
  			    {
					gatekey7[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 8)
				{
					gatekey8[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 9)
  			    {
					gatekey9[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				else if(slot == 10)
				{
					gatekey10[giveplayerid] = gate;
					strmid(GateInfo[gate][gateOwner], PlayerName(giveplayerid), 0, strlen(PlayerName(giveplayerid)), 255);
  			    	GateInfo[gate][gateOwned] = 1;
				}
				return 1;
			}
			if(strcmp(tmp,"x", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [x] [x position]");
			        return 1;
       			}
       			new Float:x;
       			x = floatstr(tmp);
  			    GateInfo[gate][gateX] = GateInfo[gate][gateX] + x;
				SetDynamicObjectPos(GateInfo[gate][gateID], GateInfo[gate][gateX], GateInfo[gate][gateY], GateInfo[gate][gateZ]);
				return 1;
			}
			if(strcmp(tmp,"y", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [y] [y position]");
			        return 1;
       			}
       			new Float:y;
       			y = floatstr(tmp);
  			    GateInfo[gate][gateY] = GateInfo[gate][gateY] + y;
				SetDynamicObjectPos(GateInfo[gate][gateID], GateInfo[gate][gateX], GateInfo[gate][gateY], GateInfo[gate][gateZ]);
				return 1;
			}
			if(strcmp(tmp,"z", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [x] [z position]");
			        return 1;
       			}
       			new Float:z;
       			z = floatstr(tmp);
  			    GateInfo[gate][gateZ] = GateInfo[gate][gateZ] + z;
				SetDynamicObjectPos(GateInfo[gate][gateID], GateInfo[gate][gateX], GateInfo[gate][gateY], GateInfo[gate][gateZ]);
				return 1;
			}
			if(strcmp(tmp,"rotx", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [rotx] [x rotation]");
			        return 1;
       			}
       			new Float:rxx;
       			rxx = floatstr(tmp);
  			    GateInfo[gate][gaterotX] = GateInfo[gate][gaterotX] + rxx;
				SetDynamicObjectRot(GateInfo[gate][gateID], GateInfo[gate][gaterotX], GateInfo[gate][gaterotY], GateInfo[gate][gaterotZ]);
				return 1;
			}
			if(strcmp(tmp,"roty", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [roty] [y rotation]");
			        return 1;
       			}
       			new Float:ryy;
       			ryy = floatstr(tmp);
  			    GateInfo[gate][gaterotY] = GateInfo[gate][gaterotY] + ryy;
				SetDynamicObjectRot(GateInfo[gate][gateID], GateInfo[gate][gaterotX], GateInfo[gate][gaterotY], GateInfo[gate][gaterotZ]);
				return 1;
			}
			if(strcmp(tmp,"rotz", true) == 0)
			{
			    tmp = strtok(cmdtext, idx);
			    if(!strlen(tmp))
			    {
			        SendClientMessage(playerid, WHITE, "SYNTAX: /editgate [id] [rotz] [z rotation]");
			        return 1;
       			}
       			new Float:rzz;
       			rzz = floatstr(tmp);
  			    GateInfo[gate][gaterotZ] = GateInfo[gate][gaterotZ] + rzz;
				SetDynamicObjectRot(GateInfo[gate][gateID], GateInfo[gate][gaterotX], GateInfo[gate][gaterotY], GateInfo[gate][gaterotZ]);
				return 1;
			}
		}
  		else
		{
		    SendClientMessage(playerid, GREY, "    You're not authorized to use that command.");
		}
		return 1;
	}
__________________
Was my help suffice?
Rep+ me, I greatly appreciate it!
Johnny_Robins is offline  
Old 30/06/2012, 11:38 AM   #2325
jeremy8810
Big Clucker
 
Join Date: Feb 2012
Location: Your screen[NL]
Posts: 193
Reputation: 17
Default Re: Script Request Thread #5

Guy I'm looking for a color command lik: /setcolor [playerID] [blue/yellow/red/purple/pink]
included the #defines (for the colors)

It have to be an admincommand for lvl 1 and higher.

Would be nice if you can make this (and +rep if it is working).

Thanks
__________________
Did I helped you? +rep would be nice
[MAP] Los Santos Roadwork
[MAP] Truckstop/Restaurant/Bar
jeremy8810 is offline  
Old 30/06/2012, 01:23 PM   #2326
PaulDinam
Gangsta
 
Join Date: Jun 2011
Posts: 887
Reputation: 45
Default Re: Script Request Thread #5

guys im looking for a good FUEL system and speedo with textdraw near the player money.
PaulDinam is offline  
Old 30/06/2012, 05:28 PM   #2327
farCry.xD
Big Clucker
 
farCry.xD's Avatar
 
Join Date: May 2012
Location: Nobody know's
Posts: 95
Reputation: 0
Default Re: Script Request Thread #5

Who can I make a register command in ladmin with Dialog !? Please help me
farCry.xD is offline  
Old 30/06/2012, 06:40 PM   #2328
bero1711
Little Clucker
 
Join Date: Jul 2009
Location: Croatia,Koprivnica
Posts: 20
Reputation: 0
Default Re: Script Request Thread #5

Can any1 who have godfather in dini or yini send me pm?
bero1711 is offline  
Old 30/06/2012, 07:00 PM   #2329
Riddy
Guest
 
Posts: n/a
Default Re: Script Request Thread #5

Need someone to create me a registered playercount via DINI, just need it to count players and save it, so I can use TextDrawSetString..
 
Old 30/06/2012, 11:31 PM   #2330
burnuk
Big Clucker
 
Join Date: Jan 2012
Posts: 81
Reputation: 11
Default Re: Script Request Thread #5

anybody can give me a script for the Deck of cards that can be bought from 24/7? i willing to give you lots of reps....
burnuk 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 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 03:51 PM.


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