new dinicreate[64];//Sor elején
public OnPlayerSpawn//a csatlakozásnál az ellenõrzés ez az ami nem jó(playerid){if(dini_Int(dinicreate, \"Jogsik\") == 1){gTeam[playerid] = JOG;SendClientMessage(playerid,LILA,\"JOG\");}else gTeam[playerid] = CIVIL;return 1;}
new name[MAX_PLAYER_NAME];//itt irom bele ami jó mert bele irja az 1 etGetPlayerName(playerid, name, sizeof(name));format(dinicreate, sizeof(dinicreate), \"Jogsik/%s.ini\", name); dini_Create(dinicreate);dini_IntSet(dinicreate, \"Jogsik\", 1);
public OnPlayerSpawn(playerid){ new name[MAX_PLAYER_NAME]; new dinicreate[64]; GetPlayerName(playerid, name, sizeof(name)); format(dinicreate, sizeof(dinicreate), \"Jogsik/%s.ini\", name); if(dini_Exists(dinicreate) { if(dini_Int(dinicreate, \"Jogsik\") == 1) { gTeam[playerid] = JOG; SendClientMessage(playerid,LILA,\"JOG\"); } else { gTeam[playerid] = CIVIL; } } else // Ha nem létezik a fájlja { dini_Create(dinicreate) gTeam[playerid] = CIVIL; // És ide, hogy mit akarsz neki beállítani én csak példát írtam ezt majd törölheted } return 1;}
#pragma tabsize 0
public OnPlayerSpawn(playerid){ new name[MAX_PLAYER_NAME]; new dinicreate[64]; GetPlayerName(playerid, name, sizeof(name)); format(dinicreate, sizeof(dinicreate), \"Jogsik/%s.ini\", name); if(dini_Exists(dinicreate)) { if(dini_Int(dinicreate, \"Jogsik\") == 1) { SendClientMessage(playerid,-1,\"Megadva a jog\"); SetPlayerTeam(playerid, 1); // Ide a te csapat változód jön csak ez egyszerûbb } else { SendClientMessage(playerid, -1 \"Neked nincs jogod a jogsihoz\"); SetPlayerTeam(playerid, 0); } } else // Ha nem létezik a fájlja { SendClientMessage(playerid, -1, \"Neked nincs jogod a jogsihoz\"); SetPlayerTeam(playerid, 0); } return 1;} CMD:jogsiad(playerid,params[]){ new name[MAX_PLAYER_NAME]; new dinicreate[64]; GetPlayerName(playerid, name, sizeof(name)); format(dinicreate, sizeof(dinicreate), \"Jogsik/%s.ini\", name); if(dini_Exists(dinicreate)) { if(dini_Int(dinicreate, \"Jogsik\") == 1) { SendClientMessage(playerid, -1, \"Neki már van jogosítványa\");}else{dini_IntSet(dinicreate, \"Jogsik\", 1);SendClientMessage(playerid, -1, \"Adtál magadnak jogsit!\");} } else { dini_Create(dinicreate); dini_IntSet(dinicreate, \"Jogsik\", 1); SendClientMessage(playerid, -1, \"Adtál magadnak jogsit!\"); } return 1;}