Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HERE'S THE COMMAND:
- COMMAND:invite(playerid, params[])
- {
- new victimname[MAX_PLAYER_NAME], leadername[MAX_PLAYER_NAME], id, string[500];
- if(PlayerInfo[playerid][pLeader] >= 1)
- {
- if (sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: (/invite) [id/ime]");
- if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "GRESKA: Nema takov igrac!");
- GetPlayerName(id, victimname, sizeof(victimname));
- GetPlayerName(playerid, leadername, sizeof(leadername));
- format(string, sizeof(string),"\nJas: %s te pokanuvam da rabotis za mene i da bides moj clen.\nDokolku Prifakjas pristisni 'Prifakjam'\nDokolku Odbivas pritisni 'Odbivam'\nDokolku se predomislis pobaraj me na Tel.Broj 1111", leadername);
- ShowPlayerDialog(id, DIALOG_INVITE, DIALOG_STYLE_MSGBOX, "Pokana za clenstvo", string, "Prifakjam","Odbivam");
- format(string, sizeof(string), "%s go pokanuva igracot %s da bide negov clen", leadername, victimname);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_RED, "GRESKA: Ne ste ovlasteni za ovaa komanda!");
- }
- HERE'S THE DIALOG:
- case DIALOG_INVITE:
- {
- if( response )
- {
- foreach(new i : Player)
- {
- if(IsPlayerConnected(i))
- {
- if(PlayerInfo[i][pLeader] == 1)
- {
- PlayerInfo[playerid][pTeam] = 1;
- ftext = "PD";
- PlayerInfo[playerid][pSkin] = 282;
- SetPlayerSkin(playerid, 282);
- }
- else if(PlayerInfo[i][pLeader] == 2)
- {
- PlayerInfo[playerid][pTeam] = 2;
- ftext = "FBI";
- PlayerInfo[playerid][pSkin] = 24;
- SetPlayerSkin(playerid, 24);
- }
- else if(PlayerInfo[i][pLeader] == 3)
- {
- PlayerInfo[playerid][pTeam] = 3;
- ftext = "ARM";
- PlayerInfo[playerid][pSkin] = 285;
- SetPlayerSkin(playerid, 285);
- }
- else if(PlayerInfo[i][pLeader] == 4)
- {
- PlayerInfo[playerid][pTeam] = 4;
- ftext = "MD";
- PlayerInfo[playerid][pSkin] = 276;
- SetPlayerSkin(playerid, 276);
- }
- else if(PlayerInfo[i][pLeader] == 5)
- {
- PlayerInfo[playerid][pTeam] = 5;
- ftext = "LCN";
- PlayerInfo[playerid][pSkin] = 112;
- SetPlayerSkin(playerid, 112);
- }
- else if(PlayerInfo[i][pLeader] == 6)
- {
- PlayerInfo[playerid][pTeam] = 6;
- ftext = "Yakuza";
- PlayerInfo[playerid][pSkin] = 121;
- SetPlayerSkin(playerid, 121);
- }
- else if(PlayerInfo[i][pLeader] == 7)
- {
- PlayerInfo[playerid][pTeam] = 7;
- ftext = "Vlada";
- PlayerInfo[playerid][pSkin] = 164;
- SetPlayerSkin(playerid, 164);
- }
- else if(PlayerInfo[i][pLeader] == 8)
- {
- PlayerInfo[playerid][pTeam] = 8;
- ftext = "Hitman";
- PlayerInfo[playerid][pSkin] = 20;
- SetPlayerSkin(playerid, 20);
- }
- else if(PlayerInfo[i][pLeader] == 9)
- {
- PlayerInfo[playerid][pTeam] = 9;
- ftext = "Kanal 1";
- PlayerInfo[playerid][pSkin] = 1;
- SetPlayerSkin(playerid, 1);
- }
- else if(PlayerInfo[i][pLeader] == 10)
- {
- PlayerInfo[playerid][pTeam] = 10;
- ftext = "Taxi";
- PlayerInfo[playerid][pSkin] = 210;
- SetPlayerSkin(playerid, 210);
- }
- else if(PlayerInfo[i][pLeader] == 11)
- {
- PlayerInfo[playerid][pTeam] = 11;
- ftext = "Ballas";
- PlayerInfo[playerid][pSkin] = 103;
- SetPlayerSkin(playerid, 103);
- }
- else if(PlayerInfo[i][pLeader] == 12)
- {
- PlayerInfo[playerid][pTeam] = 12;
- ftext = "LSG";
- PlayerInfo[playerid][pSkin] = 175;
- SetPlayerSkin(playerid, 175);
- }
- else if(PlayerInfo[i][pLeader] == 13)
- {
- PlayerInfo[playerid][pTeam] = 13;
- ftext = "GSF";
- PlayerInfo[playerid][pSkin] = 105;
- SetPlayerSkin(playerid, 105);
- }
- else if(PlayerInfo[i][pLeader] == 14)
- {
- PlayerInfo[playerid][pTeam] = 14;
- ftext = "FD";
- PlayerInfo[playerid][pSkin] = 277;
- SetPlayerSkin(playerid, 277);
- }
- else if(PlayerInfo[i][pLeader] == 15)
- {
- PlayerInfo[playerid][pTeam] = 15;
- ftext = "MRD";
- PlayerInfo[playerid][pSkin] = 247;
- SetPlayerSkin(playerid, 247);
- }
- PlayerInfo[playerid][pRank] = 1;
- }
- }
- GetPlayerName(playerid, pname, sizeof(pname));
- format(string, sizeof(string), "Ja prifativte ponudata i sega ste vo %s", ftext);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "%s ja prifati ponudata za clenstvo.", pname);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else if ( !response )
- {
- GetPlayerName(playerid, pname, sizeof(pname));
- SendClientMessage(playerid, COLOR_WHITE,"Ja odbivte ponudata za clenstvo!");
- format(string, sizeof(string), "%s ja odbi ponudata za clenstvo.", pname);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment