Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case DIALOG_CLANVEHICLES: {
- if(!response) return true;
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- new title[40];
- switch(listitem) {
- case 0: {
- format(title, sizeof(title), "Clan Safe: $%s", FormatNumber(ClanInfo[PlayerInfo[playerid][pClan]][ClanBank]));
- format(string, sizeof(string), "No\tVehicle\tCost\n1.\tInfernus\t200 premium points\n2.\tBullet\t150 premium points\n\
- 3.\tSultan\t100 premium points\n4.\tStretch\t75 premium points");
- ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+1, DIALOG_STYLE_TABLIST_HEADERS, title, string, "Select", "Exit");
- }
- default: {
- SelectedHud[ playerid ] = Selected2[ playerid ][ listitem ];
- ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+210, DIALOG_STYLE_TABLIST, "Vehicle", "Spawn/Despawn Clan Vehicle\nLocate Clan Vehicle", "Select", "Exit");
- }
- }
- }
- case DIALOG_CLANVEHICLES+1: {
- if(!response) return true;
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- switch(listitem) {
- case 0: ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+202, DIALOG_STYLE_MSGBOX, "Buy Clan Vehicle:", "Esti sigur ca doresti sa cumperi un Infernus pentru clan?\nAcesta costa 200 de puncte premium.", "Yes", "Exit");
- case 1: ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+203, DIALOG_STYLE_MSGBOX, "Buy Clan Vehicle:", "Esti sigur ca doresti sa cumperi un Bullet pentru clan?\nAcesta costa 150 de puncte premium.", "Yes", "Exit");
- case 2: ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+204, DIALOG_STYLE_MSGBOX, "Buy Clan Vehicle:", "Esti sigur ca doresti sa cumperi un Sultan pentru clan?\nAcesta costa 100 de puncte premium.", "Yes", "Exit");
- case 3: ShowPlayerDialogEx(playerid, DIALOG_CLANVEHICLES+205, DIALOG_STYLE_MSGBOX, "Buy Clan Vehicle:", "Esti sigur ca doresti sa cumperi un Stretch pentru clan?\nAcesta costa 200 de puncte premium.", "Yes", "Exit");
- }
- }
- case DIALOG_CLANVEHICLES+202: {
- if(!response) return true;
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- if(ClanInfo[clanid][clPremiumPoints] < 200) return SCM(playerid, -1, "Clanul tau nu are suficiente puncte premium.");
- ClanInfo[clanid][clPremiumPoints]-= 200;
- SCM(playerid, COLOR_GRAD4, "Procesarea ta de a cumpara un vehicul la clan a fost trimisa catre baza de date..");
- string[0] = EOS; format(string, sizeof(string), "{%s}[CLAN] %s a cumparat un Infernus pentru clan. Au fost retrase 200 puncte premium din seiful clanului.", ClanInfo[clanid][clColor], GetName(playerid));
- SendClanMessage(PlayerInfo[playerid][pClan], string);
- mysql_format(SQL, gString, sizeof gString, "INSERT INTO `clanvehicles` (`Vehicle`, `Clan`) VALUES ('411', '%d')", clanid);
- mysql_tquery(SQL, gString, "insertClanVehicle", "dd", clanid, 411);
- }
- case DIALOG_CLANVEHICLES+203: {
- if(!response) return true;
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- if(ClanInfo[clanid][clPremiumPoints] < 150) return SCM(playerid, -1, "Clanul tau nu are suficiente puncte premium.");
- ClanInfo[clanid][clPremiumPoints]-= 150;
- SCM(playerid, COLOR_GRAD4, "Procesarea ta de a cumpara un vehicul la clan a fost trimisa catre baza de date..");
- string[0] = EOS; format(string, sizeof(string), "{%s}[CLAN] %s a cumparat un Bullet pentru clan. Au fost retrase 150 puncte premium din seiful clanului.", ClanInfo[clanid][clColor], GetName(playerid));
- SendClanMessage(PlayerInfo[playerid][pClan], string);
- mysql_format(SQL, gString, sizeof gString, "INSERT INTO `clanvehicles` (`Vehicle`, `Clan`) VALUES ('541', '%d')", clanid);
- mysql_tquery(SQL, gString, "insertClanVehicle", "dd", clanid, 541);
- }
- case DIALOG_CLANVEHICLES+204: {
- if(!response) return true;
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- if(ClanInfo[clanid][clPremiumPoints] < 100) return SCM(playerid, -1, "Clanul tau nu are suficiente puncte premium.");
- ClanInfo[clanid][clPremiumPoints]-= 100;
- SCM(playerid, COLOR_GRAD4, "Procesarea ta de a cumpara un vehicul la clan a fost trimisa catre baza de date..");
- string[0] = EOS; format(string, sizeof(string), "{%s}[CLAN] %s a cumparat un Sultan pentru clan. Au fost retrase 100 puncte premium din seiful clanului.", ClanInfo[clanid][clColor], GetName(playerid));
- SendClanMessage(PlayerInfo[playerid][pClan], string);
- mysql_format(SQL, gString, sizeof gString, "INSERT INTO `clanvehicles` (`Vehicle`, `Clan`) VALUES ('560', '%d')", clanid);
- mysql_tquery(SQL, gString, "insertClanVehicle", "dd", clanid, 560);
- }
- case DIALOG_CLANVEHICLES+205: {
- if(!response) return true;
- new clanid = PlayerInfo[playerid][pClan];
- if(PlayerInfo[playerid][pClanRank] < 7) return SCM(playerid, -1, "Doar liderul clanului are acces la aceasta sectiune.");
- if(ClanInfo[clanid][clPremiumPoints] < 75) return SCM(playerid, -1, "Clanul tau nu are suficiente puncte premium.");
- ClanInfo[clanid][clPremiumPoints]-= 75;
- SCM(playerid, COLOR_GRAD4, "Procesarea ta de a cumpara un vehicul la clan a fost trimisa catre baza de date..");
- string[0] = EOS; format(string, sizeof(string), "{%s}[CLAN] %s a cumparat un Stretch pentru clan. Au fost retrase 75 puncte premium din seiful clanului.", ClanInfo[clanid][clColor], GetName(playerid));
- SendClanMessage(PlayerInfo[playerid][pClan], string);
- mysql_format(SQL, gString, sizeof gString, "INSERT INTO `clanvehicles` (`Vehicle`, `Clan`) VALUES ('409', '%d')", clanid);
- mysql_tquery(SQL, gString, "insertClanVehicle", "dd", clanid, 409);
- }
- case DIALOG_CLANVEHICLES+210: {
- if(!response) return true;
- new i = SelectedHud[ playerid ];
- switch(listitem) {
- case 0: {
- if(ClanVehicleInfo[i][clVehInGame] != 0) {
- SCM(playerid, -1, "Clan vehicle despawned!");
- DestroyVehicle(ClanVehicleInfo[i][clVehInGame]);
- DestroyObject(ClanVehicleInfo[i][clObject]);
- ClanVehicleInfo[i][clVehInGame] = 0;
- }
- else {
- createClanVehicle( i );
- SCM(playerid, -1, "Clan vehicle spawned!");
- }
- }
- case 1: {
- new Float: x, Float: y, Float: z;
- if(ClanVehicleInfo[ i ][ clVehInGame ] == 0) return SCM( playerid, COLOR_GRAD2, "Mai intai trebuie sa spawnezi masina clanului pentru a folosi aceasta functie." );
- GetVehiclePos( ClanVehicleInfo[ i ][ clVehInGame ], x, y, z );
- SetPlayerCheckpoint( playerid, x, y, z, 3.0 );
- SCM( playerid, COLOR_GRAD4, "Masina clanului a fost localizata. Du-te la checkpointul de pe mapa pentru a ajunge la ea." );
- CP[ playerid ] = 43;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement