Script applies only to ID 0... - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Script applies only to ID 0... (
/showthread.php?tid=382737)
Script applies only to ID 0... -
Da' J' - 04.10.2012
So I have a script, that applies to an ID when their health is low enough (checked with a timer). It works all good, without bugs, except it works only for ID 0..... -___- What's up lol...
http://pastebin.com/ZuKu0ZNb
P.S. There's also another script with it.. Not sure what should I put in the distance, as it's not applying the script for the closest player in the whole map lol (should apply for closest player in a realistic range like a meter).
Re: Script applies only to ID 0... -
JhnzRep - 04.10.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
SetTimerEx("AutoCrack", 2500, true,"i", playerid);
return 1;
}
~Deshawn Blackman
Nextime just gimme script, kthxbai.
EDIT:
pawn Код:
if (strcmp("/tackle", cmdtext, true, 7) == 0) {
new victimid = GetClosestPlayer(playerid), Float:X, Float:Y, Float:Z;
GetPlayerPos(victimid, X, Y, Z);
if(IsPlayerInRangeofPoint(playerid, 3, X, Y, Z))
Re: Script applies only to ID 0... -
Face9000 - 04.10.2012
https://sampforum.blast.hk/showthread.php?tid=339361