Hello hogy tudnám megoldani hogy 10 percen bellül ül be a kocsiba akkor ne adjon neki több körözést?
azaz maximum 10 percenként adhat neki 2 õt
[pawn]
if(newstate == PLAYER_STATE_DRIVER && GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 490 || GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 528 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 597 || GetVehicleModel(vehicleid) == 598 || GetVehicleModel(vehicleid) == 599 || GetVehicleModel(vehicleid) == 601)
{
if(gTeam[playerid] != COP && gTeam[playerid] != Medic && gTeam[playerid] != ARMY && gTeam[playerid] != FBI && gTeam[playerid] != SWAT)
{
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 2);
SendClientMessage(playerid, ERROR, \"{ff0000}Elloptál egy Munkajármûvet! {fff200}+2 Körözési szint!.\");
}
else if(gTeam[playerid] == COP) SendClientMessage(playerid, WHITE, \"Ez a Munkajármûved! Vigyázz rá!\");
else if(gTeam[playerid] == Medic)
{
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+ 2);
SendClientMessage(playerid, ERROR, \"{ff0000}Elloptál egy Munkajármûvet! {fff200}+2 Körözési szint!.\");
}
}[/pawn]