[POMOC]Organizacija..


Započeo [CH]Ivan_Lukic, Maj 24, 2011, 18:16:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP
Detaljan opis problema: kako da stavim da lider moze izbacit clana dok je on offline znaci dok ga nema na serveru...
problem--- kad mi igrac iz neke organizacije umre ili izade s server on mu uvijek stavi onaj skin od cj i tako i ostane nece da bude onaj od organizacije..
Dio skripte:
komanda /uninvite
if(strcmp(cmd, "/uninvite", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /uninvite [playerid/PartOfName]");
				return 1;
			}
			new para1;
			para1 = ReturnUser(tmp);
			if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "Pristup odbijen!");
				return 1;
			}
			if (PlayerInfo[playerid][pLeader] >= 1)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
					    if (PlayerInfo[para1][pMember] > 0)
					    {
							GetPlayerName(para1, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							printf("[ADMIN]: %s je izbacio igraca %s.", sendername, giveplayer);
							format(string, sizeof(string), "* You have been kicked from a Family / Police Force, by Leader %s.", sendername);
							SendClientMessage(para1, COLOR_WHITE, string);
							SendClientMessage(para1, COLOR_WHITE, "* You are now a Civilian again.");
			                gTeam[para1] = 3;
							PlayerInfo[para1][pTeam] = 3;
							PlayerInfo[para1][pMember] = 0;
							PlayerInfo[para1][pRank] = 0;
							PlayerInfo[para1][pChar] = 0;
							new rand = random(sizeof(CIV));
							SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
							PlayerInfo[para1][pModel] = CIV[rand];
							MedicBill[para1] = 0;
							SpawnPlayer(para1);
							format(string, sizeof(string), "   Izbaceni ste iz familije / Police Force, od strane lidera.", giveplayer);
							SendClientMessage(playerid, COLOR_WHITE, string);
						}
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   Niste autorizovani da bi ste Koristiteli ovu komandu (lideri samo)!");
			}
		}
		return 1;
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno):