How to add chek status in it ?
#1

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;
}
Reply
#2

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;
}
Reply
#3

thanks i try
Reply
#4

Bad idea for your server
Reply
#5

why ?
Reply
#6

Because when someone is afk he getlost 15 score points
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)