[duvida]/kitsocio so para socios
#1

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;
		}
	}
Reply
#2

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;
        }
    }
Reply
#3

Impossнvel sem as variбveis!
Reply
#4

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;
		}
	}
Reply
#5

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;
		}
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)