SA-MP Forums Archive
[duvida]/kitsocio so para socios - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [duvida]/kitsocio so para socios (/showthread.php?tid=163960)



[duvida]/kitsocio so para socios - Gabriel_Halls - 29.07.2010

vejam se esta serto tipo o /kitsocio para pegar em qualquer lugar que o player estives e assim ?
Код:
 	if(strcmp(cmd, "/kitsocio", true) == 0)
        new location = PlayerInfo[playerid][pLocal];
	    if(location == 0 || location == 255 || location == 255)
	{
	        GetPlayerName(playerid, sendername, sizeof(sendername));
			if(PlayerInfo[playerid][pSocio])
			{
			format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   			ResetPlayerWeapons(playerid);
   			GivePlayerWeapon(playerid, 24, 500);
	    	GivePlayerWeapon(playerid, 30, 1500);
		    GivePlayerWeapon(playerid, 29, 1000);
		    GivePlayerWeapon(playerid, 4, 1);
		    GivePlayerWeapon(playerid, 34, 500);
			SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!");
			return 1;
		}
	}



Re: [duvida]/kitsocio so para socios - Mateus_Henrique - 29.07.2010

tenta:

pawn Код:
if(strcmp(cmd, "/kitsocio", true) == 0)
        new location = PlayerInfo[playerid][pLocal];
        if(location == 0 || location == 255 || location == 255)
    {
            GetPlayerName(playerid, sendername, sizeof(sendername));
    if (PlayerInfo[playerid][pSocio] > 0)
            {
            format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername);
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 24, 500);
            GivePlayerWeapon(playerid, 30, 1500);
            GivePlayerWeapon(playerid, 29, 1000);
            GivePlayerWeapon(playerid, 4, 1);
            GivePlayerWeapon(playerid, 34, 500);
            SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!");
            return 1;
        }
    }



Re: [duvida]/kitsocio so para socios - luandriftlogkdr - 29.07.2010

Impossнvel sem as variбveis!


Re: [duvida]/kitsocio so para socios - Tomato_Atecubanos - 29.07.2010

Tenta isso:
Код:
	if(strcmp(cmd, "/kitsocio", true) == 0)
	{
	        GetPlayerName(playerid, sendername, sizeof(sendername));
			if(PlayerInfo[playerid][pSocio])
			{
			format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   			ResetPlayerWeapons(playerid);
   			GivePlayerWeapon(playerid, 24, 500);
	    	GivePlayerWeapon(playerid, 30, 1500);
		    GivePlayerWeapon(playerid, 29, 1000);
		    GivePlayerWeapon(playerid, 4, 1);
		    GivePlayerWeapon(playerid, 34, 500);
			SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!");
			return 1;
		}
	}



Re: [duvida]/kitsocio so para socios - Gabriel_Halls - 29.07.2010

Opa obrigado cara deu serto =D eu que tava coloando as coisas erradas Vlw.

Quote:
Originally Posted by Tomato_Atecubanos
Посмотреть сообщение
Tenta isso:
Код:
	if(strcmp(cmd, "/kitsocio", true) == 0)
	{
	        GetPlayerName(playerid, sendername, sizeof(sendername));
			if(PlayerInfo[playerid][pSocio])
			{
			format(string, sizeof(string), "* : %s Pegou Seu Kitsocio.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   			ResetPlayerWeapons(playerid);
   			GivePlayerWeapon(playerid, 24, 500);
	    	GivePlayerWeapon(playerid, 30, 1500);
		    GivePlayerWeapon(playerid, 29, 1000);
		    GivePlayerWeapon(playerid, 4, 1);
		    GivePlayerWeapon(playerid, 34, 500);
			SendClientMessage(playerid,COLOR_GREEN,"Voce pegou o seu Kitsocio!");
			return 1;
		}
	}