SA-MP Forums Archive
[Ajuda] Portхes com permissгo - 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: [Ajuda] Portхes com permissгo (/showthread.php?tid=457274)



Portхes com permissгo - VictorNascimento - 10.08.2013

E ai galera, tф com um probleminha ruim aqui, eu queria criar um portгo para cada HQ no jogo, em SF, tф criando um servidor que tem LS, SF e LV, e queria um cуdigo para que somente o lider e o membro da org abra o portгo da HQ, tenho o cуdigo que usei na pm-lv:
Код:
{
    if(strcmp(cmdtext, "/pmlva", true) == 0)
	{
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
		return 1;
	}
	if(strcmp(cmdtext, "/pmlvf", true) == 0)
	{
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 7.4000000953674, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Fechando PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Obrigado!!! Bom Jogo!!!");
		return 1;
	}
Obrigado a quem poder me ajudar!!! E se poder falar em que linhas devo colocar o cуdigo, por exemplo: "coloque entra a palavra tal e tal". Obrigado!


Re: Portхes com permissгo - mau.tito - 10.08.2013

So fazer isto !
pawn Код:
if(PlayerInfo[playerid][pLider] != 1 || PlayerInfo[playerid][Membro] != 1)return 1;
Claro com suas variaveis !


Re: Portхes com permissгo - VictorNascimento - 10.08.2013

Muito Obrigado, vou tentar aqui!!!


Re: Portхes com permissгo - VictorNascimento - 10.08.2013

Nгo funfou!!! Tem variaveis que й assim "IsACop", o ID da org da PM й "1" e eu coloquei o code assim, tб certo?

Код:
{
    if(strcmp(cmdtext, "/pmlva", true) == 0)
	{
    if(PlayerInfo[playerid][pLider] != 1 || PlayerInfo[playerid][Membro] != 1)return 1;
	(
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
		return 1;
	}



Re: Portхes com permissгo - mau.tito - 10.08.2013

Quote:
Originally Posted by VictorNascimento
Посмотреть сообщение
Nгo funfou!!! Tem variaveis que й assim "IsACop", o ID da org da PM й "1" e eu coloquei o code assim, tб certo?

Код:
{
    if(strcmp(cmdtext, "/pmlva", true) == 0)
	{
    if(PlayerInfo[playerid][pLider] != 1 || PlayerInfo[playerid][Membro] != 1)return 1;
	(
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
		return 1;
	}

Na vez da var bota !IsACop(playerid), e nгo precisa abrir chave.


Re: Portхes com permissгo - VictorNascimento - 10.08.2013

Nгo funfou dnv, eu coloquei desta maneira:
Код:
    if(strcmp(cmdtext, "/pmlva", true) == 0)
	{
	if(PlayerInfo[playerid][pLider] !IsACop(playerid) || PlayerInfo[playerid][Membro] !IsACop(playerid)return 1;
	    {
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
		return 1;
	}
e deu estes erros

Код:
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\seif_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(992) : error 004: function "SaveCars" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(1986) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(1993) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2032) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2033) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2034) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2084) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2094) : error 004: function "OnPlayerText" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2094) : error 004: function "OnPlayerText" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3495) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3587) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3604) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5018) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5060) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5102) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5144) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5173) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5202) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5231) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5260) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5289) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5337) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5366) : error 017: undefined symbol "IsNumero"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Tб dando muito erro, e eu quero meu server com este portгo, vai ficar muito legal!!!
E quando eu tiro copila direitinho


Re: Portхes com permissгo - mau.tito - 10.08.2013

So bota isto , olha que ta dando erro em uma include ae !

pawn Код:
if(strcmp(cmdtext, "/pmlva", true) == 0)
    {
    if(!IsACop(playerid))return 1;
    MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
        return 1;
    }



Re: Portхes com permissгo - VictorNascimento - 10.08.2013

Deu erro novamente, desculpe encher o saco kk, mas olhei um dos erros e na linha "3495" tem isto escrito "ClearChatbox(playerid, 100);" De qual INCLUDE deve ser? Muito Obrigado por estб ajudando e desculpe por tudo isso, code como esta no meu GM agora:

Код:
    if(strcmp(cmdtext, "/pmlva", true) == 0)
	{
    if(!IsACop(playerid))return 1;
	    {
		MoveObject(PortaoPoliciaMilitarLV,2335, 2443.3999023438, 1.3999999761581, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Abrindo PORTГO da Policia Militar de Las Venturas");
        SendClientMessage(playerid, 0x9E3EFFAA, "[PM-LV] Por Favor feche o PORTГO. USE: /pmlvf");
		return 1;
	}
e os erros:

Код:
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\seif_walk.inc(39) : error 004: function "Walk_OnPlayerKeyStateChange" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(992) : error 004: function "SaveCars" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(1986) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(1993) : error 017: undefined symbol "GetPlayerOrg"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2032) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2033) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2034) : error 017: undefined symbol "GetName"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2084) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2094) : error 004: function "OnPlayerText" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(2094) : error 004: function "OnPlayerText" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3495) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3587) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(3604) : error 004: function "ClearChatbox" is not implemented
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5018) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5060) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5102) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5144) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5173) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5202) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5231) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5260) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5289) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5337) : error 017: undefined symbol "IsNumero"
C:\Users\Victor\Desktop\Game Of Style - Oficial SAMP\gamemodes\GOS.pwn(5366) : error 017: undefined symbol "IsNumero"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Muito Obrigado por estar me ajudando


Re: Portхes com permissгo - VictorNascimento - 11.08.2013

UP UP UP pf


Respuesta: Portхes com permissгo - ViniKuliveguisky - 11.08.2013

Atualiza as duas includes!

seif_walk.inc
servermoneyGM.inc