Textdrawwal.
format(string, sizeof(string), \"Frakciód: %s\", frakcio_valtozoja);PlayerTextDrawSetString(playerid, playertextdrawid, string);
switch(frakcio_valtozoja){ case 1: { PlayerTextDrawSetString(playerid, playertextdrawid, \"Frakciód: mocskos zsaru\"); } case 2: { PlayerTextDrawSetString(playerid, playertextdrawid, \"Frakciód: hõs tûzoltó\"); } case 3: { PlayerTextDrawSetString(playerid, playertextdrawid, \"Frakciód: sikkasztó szerelõ\"); }}
switch(faction) { case 1: { strmid(FactionInfo[1][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 2: { strmid(FactionInfo[2][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 3: { strmid(FactionInfo[3][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 4: { strmid(FactionInfo[4][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 5: { strmid(FactionInfo[5][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 6: { strmid(FactionInfo[6][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 7: { strmid(FactionInfo[7][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 8: { strmid(FactionInfo[8][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 9: { strmid(FactionInfo[9][FactionName], result, 0, strlen(result), 255); SaveFactions(); } case 10: { strmid(FactionInfo[10][FactionName], result, 0, strlen(result), 255); SaveFactions(); } } }
strmid(FactionInfo[faction][FactionName], result, 0, strlen(result), 255); SaveFactions();
stock GetPlayerFactionName(playerid){new ttext[64];if(PlayerInfo[playerid][pFMember] != 255) format(ttext,sizeof(ttext),\"%s\",FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);// frakció nevekelse{switch(PlayerInfo[playerid][pMember]){ case 1: if(!isnull(FACTION_1)) { strmid(ttext, FACTION_1, 0, strlen(FACTION_1), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 2: if(!isnull(FACTION_2)) { strmid(ttext, FACTION_2, 0, strlen(FACTION_2), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 3: if(!isnull(FACTION_3)) { strmid(ttext, FACTION_3, 0, strlen(FACTION_3), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 4: if(!isnull(FACTION_4)) { strmid(ttext, FACTION_4, 0, strlen(FACTION_4), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 5: if(!isnull(FACTION_5)) { strmid(ttext, FACTION_5, 0, strlen(FACTION_5), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 6: if(!isnull(FACTION_6)) { strmid(ttext, FACTION_6, 0, strlen(FACTION_6), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 7: if(!isnull(FACTION_7)) { strmid(ttext, FACTION_7, 0, strlen(FACTION_7), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 8: if(!isnull(FACTION_8)) { strmid(ttext, FACTION_8, 0, strlen(FACTION_8), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 9: if(!isnull(FACTION_9)) { strmid(ttext, FACTION_9, 0, strlen(FACTION_9), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } case 10: if(!isnull(FACTION_10)) { strmid(ttext, FACTION_10, 0, strlen(FACTION_10), 255); } else { strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255); } default: strmid(ttext, \"Nincs\", 0, strlen(\"Nincs\"), 255);}}return ttext;}