[Ajuda] Portхes com permissгo
#1

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!
Reply
#2

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

Muito Obrigado, vou tentar aqui!!!
Reply
#4

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

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.
Reply
#6

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
Reply
#7

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

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
Reply
#9

UP UP UP pf
Reply
#10

Atualiza as duas includes!

seif_walk.inc
servermoneyGM.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)