SA-MP Forums Archive
How to add chek status in it ? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to add chek status in it ? (/showthread.php?tid=248487)



How to add chek status in it ? - sMog. - 14.04.2011

Hello i have 1 question?
I am using Anti afk system and my server has system that 1 minute in car +1 score and i want to make that if player gets kicked by anti afk and player is in car server gives -15 score!

I think i must add it here
Код:
FUNCTION:DelayedKick(playerid)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Unfortunately you haven't entered the text in time. Goodbye.");
    Kick(playerid);
        return 1;
}
Is it correct ? if(IsPlayerInAnyVehicle(playerid)) {
Код:
FUNCTION:DelayedKick(playerid)
{
   if(IsPlayerInAnyVehicle(playerid)) {
   SetPlayerScore(i,GetPlayerScore(i)-15);
}
    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Unfortunately you haven't entered the text in time. Goodbye.");
    Kick(playerid);
        return 1;
}



Re: How to add chek status in it ? - Alby Fire - 14.04.2011

If your function is right:
pawn Код:
FUNCTION:DelayedKick(playerid)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: Unfortunately you haven't entered the text in time. Goodbye.");
    if(IsPlayerInAnyVehicle(playerid)) {
        new
            score;
        score = GetPlayerScore(playerid);
        SetPlayerScore(playerid, score-15);
    }
    Kick(playerid);
    return 1;
}



Re: How to add chek status in it ? - sMog. - 14.04.2011

thanks i try


Re: How to add chek status in it ? - [DJ]Boki - 14.04.2011

Bad idea for your server


Re: How to add chek status in it ? - sMog. - 14.04.2011

why ?


Re: How to add chek status in it ? - [DJ]Boki - 14.04.2011

Because when someone is afk he getlost 15 score points


Re: How to add chek status in it ? - sMog. - 15.04.2011

yeah but in my server i have system when player is in car he gets +1 score every minute and if he trying to make score with afking server takes score back