View Full Version : Script applies only to ID 0...

Da' J'
04/10/2012, 08:19 PM
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...


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).

04/10/2012, 08:23 PM
public OnPlayerSpawn(playerid)
SetTimerEx("AutoCrack", 2500, true,"i", playerid);
return 1;

~Deshawn Blackman

Nextime just gimme script, kthxbai.

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))

04/10/2012, 09:24 PM