SA-MP Forums Archive
[FilterScript] [FS's] RPG commands: /rob, /hit, /rape, /taze - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS's] RPG commands: /rob, /hit, /rape, /taze (/showthread.php?tid=41161)

Pages: 1 2


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - x-cutter - 25.10.2008

Possible to have the /hit and /rob commands converted to strtok?


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - bogeymanEST - 25.10.2008

Quote:
Originally Posted by X_Cutterz
Possible to have the /hit and /rob commands converted to strtok?
why? they work great with dcmd too :P


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - HG.Psycho - 25.10.2008

I've yesterday test the Taze Command, but all player can use this, nice Work, but this isn't good for RP Server just for fun Server.


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - Fidus - 25.10.2008

Rear one, that is genuinly stupid for RPG server. Would be beautiful if someone say could like one this only for Cops makes accessible.


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - bogeymanEST - 27.10.2008

There is no function like:
pawn Code:
IsPlayerCop(playerid):
So I can't make these commands for only cops, because different servers/scripts use different methods of storing teams. It would be ridiculous for me to make these for cop only. You have to use your knowledge and skill to make them by yourself!


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - kukars22 - 03.12.2008

D:\SA-MP SERVER\filterscripts\head.pwn(226) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

When I am trying to Compile hit.pwn
please fix this


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - FUNExtreme - 03.12.2008

at the end of line 226 put
Code:
;



Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - kukars22 - 03.12.2008

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(hit, 3, cmdtext);

	if(!strcmp(cmdtext, "/heads", true))
	{
		new count = 0;
		SendClientMessage(playerid, COLOR_MSG, "Pasreizejie uzdevumi:");
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i) && hit[i] > 0)
			{
				new string[256];
				format(string, 256, "Galva uz %s (%i) par $%i", ReturnPlayerName(i), i, hit[i]);
				SendClientMessage(playerid, COLOR_FOUND, string);
				count++
			};
		}
		if(count == 0)
		{
			SendClientMessage(playerid, COLOR_ERROR, "Nav neviena uzdevuma paslaik!");
		}
	}
	return 0;
}
I added and I get this message:

Code:
D:\SA-MP SERVER\filterscripts\head.pwn(226) : error 001: expected token: ";", but found "}"
D:\SA-MP SERVER\filterscripts\head.pwn(226) : error 036: empty statement
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - bogeymanEST - 03.12.2008

i think you should change
Code:
count++
to
Code:
count++;



Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - notec100 - 18.12.2008

Hi for the rape cmd I would like to make it be based off they can rape if player is near the target. Currently you can be in LS and rape someone in LV. I do not know how to implement the is player near player so if someone could give and example of what to do and where to put in in the script would really help me out a lot considering I'm a visual learner. Thank you in advance!


Re: [FS's] RPG commands: /rob, /hit, /rape, /taze - wolfcock - 09.07.2010

why did you make this as a FS and not a Game Add-on? :S