if(sscanf(params, \"s[128]\", neve)) return SendClientMessage(playerid, VPIROS, \"Használat: /újcctv [Név]\");
CMD:ujcctv(playerid, params[]){if(pInfo[playerid][pAdmin] == 6){ new Float:x, Float:y,Float:z,Float:a, name[128], neve[128], HID = 1; GetPlayerPos(playerid,x,y,z);GetPlayerFacingAngle(playerid, a); if(sscanf(params, \"s[128]\", neve)) return SendClientMessage(playerid, VPIROS, \"Használat: /újcctv [Név]\"); for(new i; i < MAX_CCTV; i ++){ HID = i + 1;} format(File, sizeof(File), \"CCTV/%d.ini\", HID); dini_Create(File); CCTVInfo[id][cctv_X] = x; CCTVInfo[id][cctv_Y] = y; CCTVInfo[id][cctv_Z] = z; CCTVInfo[id][cctv_rotX] = 0.0; CCTVInfo[id][cctv_rotY] = 0.0; CCTVInfo[id][cctv_rotZ] = 0.0; CCTVInfo[id][cctv_VW] = GetPlayerVirtualWorld(playerid); CCTVInfo[id][cctv_Interior] = GetPlayerInterior(playerid); CCTVInfo[id][cctv_Name] = format(name, sizeof(name), \"%s\", neve); CCTVMent(HID);CCTVInfo[HID][cctv_Object] = CreateObject(1886, CCTVInfo[HID][cctv_X], CCTVInfo[HID][cctv_Y], CCTVInfo[HID][cctv_Z], CCTVInfo[HID][cctv_rotX], CCTVInfo[HID][cctv_rotY], CCTVInfo[HID][cctv_rotZ], 60);SendClientMessage(playerid, ZOLD, \"Ne felejsd el a pozícióját beállítani! (/editcctv)\"); SetPlayerPos(playerid, x, y, z+3);}else{ SendClientMessage(playerid, VPIROS, \"Nincs hozzá jogod!\");}return 1;}
CCTVInfo[id][cctv_X] = x; CCTVInfo[id][cctv_Y] = y; CCTVInfo[id][cctv_Z] = z; CCTVInfo[id][cctv_rotX] = 0.0; CCTVInfo[id][cctv_rotY] = 0.0; CCTVInfo[id][cctv_rotZ] = 0.0; CCTVInfo[id][cctv_VW] = GetPlayerVirtualWorld(playerid); CCTVInfo[id][cctv_Interior] = GetPlayerInterior(playerid); CCTVInfo[id][cctv_Name] = format(name, sizeof(name), \"%s\", neve)
stock CCTVMent(HID){format(File, sizeof(File), \"CCTV/%d.ini\", HID);if(dini_Exists(File)){ dini_Set(File, \"cctv_Name\", CCTVInfo[HID][cctv_Name]);dini_FloatSet(File, \"cctv_X\", CCTVInfo[HID][cctv_X]);dini_FloatSet(File, \"cctv_Y\", CCTVInfo[HID][cctv_Y]);dini_FloatSet(File, \"cctv_Z\", CCTVInfo[HID][cctv_Z]);dini_FloatSet(File, \"cctv_rotX\", CCTVInfo[HID][cctv_rotX]);dini_FloatSet(File, \"cctv_rotY\", CCTVInfo[HID][cctv_rotY]);dini_FloatSet(File, \"cctv_rotZ\", CCTVInfo[HID][cctv_rotZ]);dini_IntSet(File, \"cctv_VW\", CCTVInfo[HID][cctv_VW]);dini_IntSet(File, \"cctv_Interior\", CCTVInfo[HID][cctv_Interior]);dini_IntSet(File, \"cctv_Object\", CCTVInfo[HID][cctv_Object]);dini_IntSet(File, \"Kész\", CCTVInfo[HID][Kesz]);}}
if(sscanf(params, \"s[128]\", neve)) return SendClientMessage(playerid, VPIROS, \"Használat: /újcctv [Név]\"); for(new i; i < MAX_CCTV; i ++){ HID = i + 1;}SendClientMessage(playerid, ZOLD, \"1\"); format(File, sizeof(File), \"CCTV/%d.ini\", HID); dini_Create(File);SendClientMessage(playerid, ZOLD, \"2\"); CCTVInfo[HID][cctv_X] = x;SendClientMessage(playerid, ZOLD, \"3\"); CCTVInfo[HID][cctv_Y] = y;SendClientMessage(playerid, ZOLD, \"4\"); CCTVInfo[HID][cctv_Z] = z;SendClientMessage(playerid, ZOLD, \"5\"); CCTVInfo[HID][cctv_rotX] = 0.0;SendClientMessage(playerid, ZOLD, \"6\"); CCTVInfo[HID][cctv_rotY] = 0.0;SendClientMessage(playerid, ZOLD, \"7\"); CCTVInfo[HID][cctv_rotZ] = 0.0;SendClientMessage(playerid, ZOLD, \"8\"); CCTVInfo[HID][cctv_VW] = GetPlayerVirtualWorld(playerid);SendClientMessage(playerid, ZOLD, \"9\"); CCTVInfo[HID][cctv_Interior] = GetPlayerInterior(playerid);SendClientMessage(playerid, ZOLD, \"10\");format(CCTVInfo[HID][cctv_Name], 128, \"%s\", neve);SendClientMessage(playerid, ZOLD, \"11\"); CCTVMent(HID);SendClientMessage(playerid, ZOLD, \"12\");
enum E_CCTV_INFO{ cctv_Name[128], Float: cctv_X, Float: cctv_Y, Float: cctv_Z, Float: cctv_rotX, Float: cctv_rotY, Float: cctv_rotZ, cctv_VW, cctv_Interior, cctv_Object, Kesz};
A cctv mappa jogosultsága 777?