Script applies only to ID 0...
#1

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).
Reply
#2

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))
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=339361
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)