Tak jak w temacie, prosiłbym o pomoc w dodaniu wymogu, który wynosiłby 500 monet by założyć klan.
public CreateGroup(id) { if(g_iPlayerGroup[id] != -1) { print_msg(id, "Jestes juz w klanie."); return PLUGIN_CONTINUE; } client_cmd(id, "messagemode WpiszNazweKlanu"); return PLUGIN_CONTINUE; } public GroupNameWrited(id) { if(g_iPlayerGroup[id] != -1) { print_msg(id, "Jestes juz w klanie."); return PLUGIN_HANDLED; } new szGroupName[20]; read_argv(1, szGroupName, 20); g_iPlayerGroup[id] = g_iGroupsCount; g_iIsGroupOwner[id] = 1; ArrayPushCell(g_iGroupLevel, 1); ArrayPushCell(g_iGroupExperience, 0); ArrayPushCell(g_iGroupMembersCount, 1); for(new i = 1; i < MAX_MEMBERS; i++) ArrayPushString(g_szGroupMembers[i], ""); for(new i = 0; i < 4; i++) ArrayPushCell(g_iGroupAdditionalPoints[i], 0); ArrayPushString(g_szGroupName, szGroupName); ArrayPushString(g_szGroupOwner, g_szPlayerName[id]); g_iGroupsCount++; UpdateInfo(id); print_msg(id, "Klan^x03 %s^x01 zostal zalozony.", szGroupName); return PLUGIN_HANDLED; }
Użytkownik Kuba22 edytował ten post 27.01.2015 15:11