Cuff and Heal commands not working
#4

Quote:
Originally Posted by Jokel317
Ive read the pawno manual and other resources over the past year. Some of that stuff I don`t fully understand. I did not originally put that code together im just trying get it to work thanks.
You need to create a cuff command rather than copying someone elses work.

This is over-complicated...


Also, Whats this DenyT and Deny stuff


Example on why to re-do the command...

Код:
	if (!NearPlayer(2, playerid, targetid))
  	{
  	PNAME; TNAME; Deny;
    format(MyString, sizeof(MyString), "%s (%i) is too far away.", TargetName, targetid); GameTFP;
	  SendClientMessage(playerid, YELLOW, MyString);
	  return 1;
  	}
In this section, (I presume) it makes the playername, targetname, and still runs this "Deny"... Yet all it needs is the target name, Not the player who tried to cuff.

Yet all it needs is a...

return 1;

to deny, and client messaqges to actually "say" that it's denied.

Also, NearPlayer should be IsPlayerInRangeOfPoint... Update, and use the new functions.

and I'd also suggest to review what gamemode you are using for this, as it seems "outdated".

What gamemode are you using, I'll make something for you to make a cuff command. (It'll be WAY simple, Not over-complicated like this...)

Also, A simple search of "dcmd_cuff(playerid, params[])" in ****** pointed me to another thread that literally has most of it done already, Even in dcmd...

http://forum.sa-mp.com/index.php?top...8793#msg428793
Reply


Messages In This Thread
Cuff and Heal commands not working - by Jokel317 - 10.11.2009, 04:40
Re: Cuff and Heal commands not working - by RoBo - 10.11.2009, 06:32
Re: Cuff and Heal commands not working - by Jokel317 - 10.11.2009, 21:12
Re: Cuff and Heal commands not working - by Sew_Sumi - 11.11.2009, 00:17
Re: Cuff and Heal commands not working - by Jokel317 - 11.11.2009, 00:35
Re: Cuff and Heal commands not working - by Sew_Sumi - 11.11.2009, 03:31
Re: Cuff and Heal commands not working - by Jokel317 - 11.11.2009, 14:17
Re: Cuff and Heal commands not working - by Sew_Sumi - 11.11.2009, 14:36
Re: Cuff and Heal commands not working - by Jokel317 - 11.11.2009, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)