[Pomoc] odjeca kupnja

Započeo [GU:RP] ivica 156, April 05, 2012, 12:55:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:cyber
Detaljan opis problema:kako da napravim da se u salonu odjece kupuju skinovi ja imam jedan ali meni nece nesta mogu birat samo jedan skin.
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

pa stavi kako cvemo ti pomoci ako nisi stavio dio skripte ?

evo komanda za kupnju:

if(strcmp(cmd, "/odjeca", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][Clan] >= 1)
	        {
	            if(IsAtClothShop(playerid))
				{
				    if(PlayerInfo[playerid][Clan] == 1) { ChosenSkin[playerid] = 280; SetPlayerSkin(playerid, 280); }
					else if(PlayerInfo[playerid][Clan] == 2) { ChosenSkin[playerid] = 286; SetPlayerSkin(playerid, 286); }
					else if(PlayerInfo[playerid][Clan] == 3) { ChosenSkin[playerid] = 287; SetPlayerSkin(playerid, 287); }
					if(PlayerInfo[playerid][Clan] == 4) { ChosenSkin[playerid] = 70; SetPlayerSkin(playerid, 70); }
					else if(PlayerInfo[playerid][Clan] == 5) { ChosenSkin[playerid] = 117; SetPlayerSkin(playerid, 117); }
					else if(PlayerInfo[playerid][Clan] == 6) { ChosenSkin[playerid] = 111; SetPlayerSkin(playerid, 111); }
					else if(PlayerInfo[playerid][Clan] == 8) { ChosenSkin[playerid] = 249; SetPlayerSkin(playerid, 249); }
					else if(PlayerInfo[playerid][Clan] == 9) { ChosenSkin[playerid] = 148; SetPlayerSkin(playerid, 148); }
					else if(PlayerInfo[playerid][pJob] == 13) { ChosenSkin[playerid] = 255; SetPlayerSkin(playerid, 255); }
					else if(PlayerInfo[playerid][Clan] == 11) { ChosenSkin[playerid] = 59; SetPlayerSkin(playerid, 59); }
					else if(PlayerInfo[playerid][Clan] == 14) { ChosenSkin[playerid] = 169; SetPlayerSkin(playerid, 169); }
					else if(PlayerInfo[playerid][Clan] == 15) { ChosenSkin[playerid] = 127; SetPlayerSkin(playerid, 127); }
					else if(PlayerInfo[playerid][Clan] == 16) { ChosenSkin[playerid] = 184; SetPlayerSkin(playerid, 184); }
					else { return 1; }
					GetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
					ChangePos2[playerid][0] = GetPlayerInterior(playerid);
					ChangePos2[playerid][1] = 1;
					ChangePos3[playerid] = GetPlayerVirtualWorld(playerid);
				    SetPlayerInterior(playerid,0);
					new rand = random(sizeof(gInviteSpawns));
					SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
					SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
					SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
					SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
					TogglePlayerControllable(playerid, 0);
					SelectChar[playerid] = 255;
					SelectCharID[playerid] = PlayerInfo[playerid][Clan];
					SelectCharPlace[playerid] = 1;
					PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
			    	PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
				    SendClientMessage(playerid, ZELENA, "Koristite [dalje] da bi mjenjali odjecu.");
				    SendClientMessage(playerid, ZELENA, "Ako ste pronasli odgovarajucu odjecu koristite [gotovo].");
				}
				else
				{
					SendClientMessage(playerid, SIVA, "[ERROR]:Niste u butiku.");
					return 1;
				}
	        }
	        else
	        {
	            if(IsAtClothShop(playerid))
	            {
	                if(PlayerInfo[playerid][pSex] == 1) { ChosenSkin[playerid] = 2; SetPlayerSkin(playerid, 2); PlayerInfo[playerid][pChar] = 2; }
	                else if(PlayerInfo[playerid][pSex] == 2) { ChosenSkin[playerid] = 55; SetPlayerSkin(playerid, 55); PlayerInfo[playerid][pChar] = 55; }
	                else { return 1; }
	                GetPlayerPos(playerid, ChangePos[playerid][0],ChangePos[playerid][1],ChangePos[playerid][2]);
					ChangePos2[playerid][0] = GetPlayerInterior(playerid);
					ChangePos2[playerid][1] = 1;
					ChangePos3[playerid] = GetPlayerVirtualWorld(playerid);
					SetPlayerInterior(playerid,0);
					new rand = random(sizeof(gInviteSpawns));
					SetPlayerPos(playerid, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
					SetPlayerFacingAngle(playerid, gInviteSpawns[rand][3]);
					SetPlayerCameraPos(playerid,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
					SetPlayerCameraLookAt(playerid,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
					TogglePlayerControllable(playerid, 0);
					SelectChar[playerid] = 255;
					if(PlayerInfo[playerid][pSex] == 1) { SelectCharID[playerid] = 20; }
					else if(PlayerInfo[playerid][pSex] == 2) { SelectCharID[playerid] = 30; }
					else { return 1; }
					SelectCharPlace[playerid] = 1;
					PlayerInfo[playerid][pModel] = ChosenSkin[playerid];
					PlayerInfo[playerid][pChar] = ChosenSkin[playerid];
					SendClientMessage(playerid, ZELENA, "Koristite [dalje] da bi mjenjali odjecu.");
				    SendClientMessage(playerid, ZELENA, "Ako ste pronasli odgovarajucu odjecu koristite [gotovo].");
	            }
	        }
	    }
	    return 1;
	}

Snich

Pa kakav imas problem? Stavi ovu komandu pod OnPlayerCommandText ...

valjda mi nije potpuna cmd pa bi zamolio ako mi mozete pomoci da dovrsim dio drugi di da stavim da kad biraju skinove da ih ima vise?