11.11.2009, 00:17
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.
|
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; }
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