Warning System
#4

But first you need to check if the player is there NONSTOP
Im not very good in timers but i saw this reply


Quote:
Originally Posted by TheXIII
Посмотреть сообщение
Something like this?
pawn Код:
// Global array
new FindCPTimer[MAX_PLAYERS];
// Under Command
FindCPTimer[playerid] = SetTimerEx("SyncFindCP", 1000, true, "ii", playerid, player);

// Function under timer
public SyncFindCP(Looking, ToFind)
{
    if( IsPlayerConnected(ToFind) )
    {
        new Float:ToFindPos[3];
        GetPlayerPos(ToFind, ToFindPos[0], ToFindPos[1], ToFindPos[2]);
        SetPlayerCheckPoint(Looking, ToFindPos[0], ToFindPos[1], ToFindPos[2]);
    }
    else{
        DisablePlayerCheckPoint(Looking);
        KillTimer(FindCPTimer[playerid]);
    }
    return 1;
}
Ofc,this needs to be edited
Reply


Messages In This Thread
Warning System - by Infinitas - 06.12.2010, 16:57
Re: Warning System - by SkizzoTrick - 06.12.2010, 17:02
Re: Warning System - by Infinitas - 06.12.2010, 17:04
Re: Warning System - by SkizzoTrick - 06.12.2010, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)