#include <a_samp>#include <dini>new loc[200];new nev[MAX_PLAYER_NAME];new jatszottido[MAX_PLAYERS];new vipskin[MAX_PLAYERS];forward viptime();#define Narancs {ffa200}#define Piros {ff0000}#define Kék {001eff} public OnFilterScriptInit(){ print(\"\\n--------------------------------------\"); print(\" VipSys4Stramm by Red-Eye\"); print(\"--------------------------------------\\n\"); SetTimer(\"viptime\",1000,true); return 1;}public viptime(){ for(new i=0;i < MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { jatszottido++; } } return 1;}public OnFilterScriptExit(){ return 1;}public OnPlayerConnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(loc, sizeof(loc), \"/vip/%s.ini\",nev); if(!dini_Exists(loc)) { dini_Create(loc); dini_IntSet(loc, \"Jatszottido\", 0); // DM[playerid] = dini_Int(loc, \"DM\"); } else { jatszottido[playerid] = dini_Int(loc, \"Jatszottido\"); } return 1;}public OnPlayerDisconnect(playerid, reason){ GetPlayerName(playerid,nev,sizeof(nev)); format(loc,sizeof(loc),\"/vip/%s.ini\",nev); if(!dini_Exists(loc)) { dini_Create(loc); dini_IntSet(loc,\"Jatszottido\", 0); dini_IntSet(loc,\"skin\",999); } else { dini_IntSet(loc, \"Jatszottido\",jatszottido[playerid]); dini_IntSet(loc, \"skin\",vipskin[playerid]); } return 1;}public OnPlayerSpawn(playerid){ if(vipskin[playerid] != 999) { SetPlayerSkin(playerid,vipskin[playerid]); } return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/viphelp\", cmdtext, true, 10) == 0) { if(jatszottido[playerid] >= 300) { ShowPlayerDialog(playerid, 10000, DIALOG_STYLE_MSGBOX, \"{ffa200}VIP-Help\", \"{ffa200}/Colour-Szín választása\\n{001eff}/saveskin-Skin mentése\\n{ff0000}/deleteskin-Skin törlése\", \"Igen\", \"Mégse\"); } else SendClientMessage(playerid,0xFFFFF,\"Nem Vagy VIP-Tag\");return 1; }if (strcmp(\"/colour\", cmdtext, true, 10) == 0) { if(jatszottido[playerid] >= 300) { ShowPlayerDialog(playerid, 2024, DIALOG_STYLE_LIST, \"Color\", \"{FF0000}Piros\\n{0000FF}Kék\\n{FFFF00}Sárga\\n{00FF00}Zöld\\n{000000}Fekete\\n{800080}Bíbor\\n{FF8000}Narancs Sárga\\n{3D2929}Barna\\n{808080}Szürke\\n{FFFFFF}Fehér\\n{808000}Arany\\n{FF00FF}Ezüst\\n{C0C0C0}Lila\\n{00FFFF}Világos Kék\\n{808000}ZöldSárga\\n{004000}Sötét Zöld\\n{FFFF80}Világos Sárga\\n{FF80FF}Világos Lila\\n{DD99B3}Világos Koral\\n{747474}Sötét Szürke\", \"Kiválasztom!\", \"Kilépés!\"); } else SendClientMessage(playerid,0xFFFFF,\"Nem Vagy VIP-Tag\");return 1; }if (strcmp(\"/saveskin\", cmdtext, true, 10) == 0) { if(jatszottido[playerid] >= 300) { vipskin[playerid] = GetPlayerSkin(playerid); } else SendClientMessage(playerid,0xFFFFF,\"Nem Vagy VIP-Tag\"); return 1; }if (strcmp(\"/deleteskin\", cmdtext, true, 10) == 0) { if(jatszottido[playerid] >= 300) { vipskin[playerid] = 999; } else SendClientMessage(playerid,0xFFFFF,\"Nem Vagy VIP-Tag\"); return 1; }return 0;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 2024) { if(response) { if(listitem == 0) // { SetPlayerColor(playerid,0xfc0505AA); } if(listitem == 1) { SetPlayerColor(playerid,0x0800faAA); } if(listitem == 2) { SetPlayerColor(playerid,0xdfe617AA); } if(listitem == 3) { SetPlayerColor(playerid,0x24f511AA); } if(listitem == 4) { SetPlayerColor(playerid,0x000000FF); } if(listitem == 5) { SetPlayerColor(playerid,0xdbc011AA); } if(listitem == 6) { SetPlayerColor(playerid,0xf7b42dAA); } if(listitem == 7) { SetPlayerColor(playerid,0x96782cAA); } if(listitem == { SetPlayerColor(playerid,0x8a8a8aAA); } if(listitem == 9) { SetPlayerColor(playerid,0xFFFFFFFF); } if(listitem == 10) { SetPlayerColor(playerid,0xede432AA); } if(listitem == 11) { SetPlayerColor(playerid,0xccccccAA); } if(listitem == 12) { SetPlayerColor(playerid,0x08f5f5AA); } if(listitem == 13) { SetPlayerColor(playerid,0xc6f508AA); } if(listitem == 14) { SetPlayerColor(playerid,0x378c30AA); } if(listitem == 15) { SetPlayerColor(playerid,0xf7f70dAA); } if(listitem == 16) { SetPlayerColor(playerid,0xea00ffAA); } if(listitem == 17) { SetPlayerColor(playerid,0xF08080FF); } if(listitem == 18) { SetPlayerColor(playerid,0x707070AA); } } } return 1;}
#include <a_samp>#include <dini>new loc[200];new nev[MAX_PLAYER_NAME];new jatszottido[MAX_PLAYERS];new vipskin[MAX_PLAYERS];new VIP[MAX_PLAYERS];forward viptime();public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" VipSys4Stramm by Red-Eye\");print(\"--------------------------------------\\n\");SetTimer(\"viptime\",1000,true);return 1;}public viptime(){for(new i=0;i < MAX_PLAYERS;i++){if(IsPlayerConnected(i)){jatszottido++;}}return 1;}public OnFilterScriptExit(){return 1;} public OnPlayerConnect(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); format(loc, sizeof(loc), \"/vip/%s.ini\",nev); if(!dini_Exists(loc)){ dini_Create(loc); dini_IntSet(loc, \"Jatszottido\", 0); dini_IntSet(loc, \"VIP\", 0); }else{ jatszottido[playerid] = dini_Int(loc, \"Jatszottido\"); VIP[playerid] = dini_Int(loc,\"VIP\"); }return 1;}public OnPlayerDisconnect(playerid, reason){GetPlayerName(playerid,nev,sizeof(nev));format(loc,sizeof(loc),\"/vip/%s.ini\",nev);if(!dini_Exists(loc)){dini_Create(loc);dini_IntSet(loc,\"Jatszottido\", 0);dini_IntSet(loc,\"skin\",999);}else{dini_IntSet(loc, \"VIP\",VIP[playerid]);dini_IntSet(loc, \"Jatszottido\",jatszottido[playerid]);dini_IntSet(loc, \"skin\",vipskin[playerid]);}return 1;}public OnPlayerSpawn(playerid){if(vipskin[playerid] != 999){SetPlayerSkin(playerid,vipskin[playerid]);}return 1;} public OnPlayerCommandText(playerid, cmdtext[]){ new cmd[256]; new idx; cmd = strtok(cmdtext, idx); if(strcmp(cmd, \"/vipset\", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); new jatekos = strval(tmp); if(IsPlayerConnected(jatekos)) { VIP[jatekos] = 1; } return 1; } if(strcmp(cmd, \"/vipelvesz\", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); new jatekos = strval(tmp); if(IsPlayerConnected(jatekos)) { VIP[jatekos] = 0; } return 1; }if (strcmp(\"/colour\", cmdtext, true, 10) == 0) { if(jatszottido[playerid] >= 300 || VIP[playerid] == 1) { ShowPlayerDialog(playerid, 2024, DIALOG_STYLE_LIST, \"Color\", \"{FF0000}Piros\\n{0000FF}Kék\\n{FFFF00}Sárga\\n{00FF00}Zöld\\n{000000}Fekete\\n{800080}Bíbor\\n{FF8000}Narancs Sárga\\n{3D2929}Barna\\n{808080}Szürke\\n{FFFFFF}Fehér\\n{808000}Arany\\n{FF00FF}Ezüst\\n{C0C0C0}Lila\\n{00FFFF}Világos Kék\\n{808000}ZöldSárga\\n{004000}Sötét Zöld\\n{FFFF80}Világos Sárga\\n{FF80FF}Világos Lila\\n{DD99B3}Világos Koral\\n{747474}Sötét Szürke\", \"Kiválasztom!\", \"Kilépés!\"); } else SendClientMessage(playerid,0xFFFFF,\"Nem játszottál még eleget a VIP parancsokhoz\"); return 1; }if (strcmp(\"/saveskin\", cmdtext, true, 10) == 0){if(jatszottido[playerid] >= 300 || VIP[playerid]) {vipskin[playerid] = GetPlayerSkin(playerid); } else SendClientMessage(playerid,0xFFFFF,\"Nem játszottál még eleget a VIP parancsokhoz\"); return 1;}if (strcmp(\"/deleteskin\", cmdtext, true, 10) == 0){if(jatszottido[playerid] >= 300 || VIP[playerid]) {vipskin[playerid] = 999; } else SendClientMessage(playerid,0xFFFFF,\"Nem játszottál még eleget a VIP parancsokhoz\"); return 1;}return 0;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 2024) { if(response) { if(listitem == 0) // { SetPlayerColor(playerid,0xfc0505AA); } if(listitem == 1) { SetPlayerColor(playerid,0x0800faAA); } if(listitem == 2) { SetPlayerColor(playerid,0xdfe617AA); } if(listitem == 3) { SetPlayerColor(playerid,0x24f511AA); } if(listitem == 4) { SetPlayerColor(playerid,0x000000FF); } if(listitem == 5) { SetPlayerColor(playerid,0xdbc011AA); } if(listitem == 6) { SetPlayerColor(playerid,0xf7b42dAA); } if(listitem == 7) { SetPlayerColor(playerid,0x96782cAA); } if(listitem == { SetPlayerColor(playerid,0x8a8a8aAA); } if(listitem == 9) { SetPlayerColor(playerid,0xFFFFFFFF); } if(listitem == 10) { SetPlayerColor(playerid,0xede432AA); } if(listitem == 11) { SetPlayerColor(playerid,0xccccccAA); } if(listitem == 12) { SetPlayerColor(playerid,0x08f5f5AA); } if(listitem == 13) { SetPlayerColor(playerid,0xc6f508AA); } if(listitem == 14) { SetPlayerColor(playerid,0x378c30AA); } if(listitem == 15) { SetPlayerColor(playerid,0xf7f70dAA); } if(listitem == 16) { SetPlayerColor(playerid,0xea00ffAA); } if(listitem == 17) { SetPlayerColor(playerid,0xF08080FF); } if(listitem == 18) { SetPlayerColor(playerid,0x707070AA); } } }return 1;}