[FilterScript] [FS's] RPG commands: /rob, /hit, /rape, /taze
#21

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

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
Reply
#23

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.
Reply
#24

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

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!
Reply
#26

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
Reply
#27

at the end of line 226 put
Code:
;
Reply
#28

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.
Reply
#29

i think you should change
Code:
count++
to
Code:
count++;
Reply
#30

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!
Reply
#31

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


Forum Jump:


Users browsing this thread: 1 Guest(s)