14.04.2011, 08:46
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
Is it correct ? if(IsPlayerInAnyVehicle(playerid)) {
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;
}
Код:
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;
}

