if(strcmp(cmd, \"/kordon\", true) == 0){new kordon[MAX_PLAYERS];new kordon2[MAX_PLAYERS];new lerakva[MAX_PLAYERS];if(gTeam[playerid] == TEAM_POLICE){if(lerakva[playerid] == 0){ new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, a); kordon[playerid] = CreateObject(playerid,3091, x, y, z, 0.0, 0.0, a); SendClientMessage(playerid,COLOR_RED,\"Kordon sikeresen lerakva!\"); lerakva[playerid] = 1;} else if(lerakva[playerid] == 1) { new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, a); kordon2[playerid] = CreateObject(playerid,2892, x, y, z, 0.0, 0.0, a); SendClientMessage(playerid,COLOR_RED,\"Kordon sikeresen lerakva!\"); lerakva[playerid] = 2;}else if(lerakva[playerid] == 2){DestroyObject(kordon[playerid]);DestroyObject(kordon2[playerid]);new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, z);GetPlayerFacingAngle(playerid, a);CreateObject(playerid,2892, x, y, z, 0.0, 0.0, a);SendClientMessage(playerid,COLOR_RED,\"Kordon sikeresen lerakva!\");lerakva[playerid] = 2;}}else SendClientMessage(playerid, COLOR_RED, \"Nem vagy rendõr.\");return 1;}