SA-MP Forums Archive
[Ajuda] Ajuda sobre esse codigo aki - 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] Ajuda sobre esse codigo aki (/showthread.php?tid=465602)



Ajuda sobre esse codigo aki - Marlonxv - 23.09.2013

Bom eu criei esse codigo aki de teleporte:
Код:
if(strcmp(cmdtext,"/prediobpn",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,1557.8494,-1369.8411,330.0000);
}
SetPlayerPos(playerid,1557.8494,-1369.8411,330.0000);
SetPlayerInterior(playerid,0);
return 1;
}
eu queria fazer ele para somente administradores nivel 1 usar e aparecer uma mensagem so para o administrador ' vocк foi teleportado para o predio bpn. alguйm me ajuda? e outra so adm podem usar


Re: Ajuda sobre esse codigo aki - Sti - 23.09.2013

Qual Variavel de ADM que você usa?

pawn Код:
if(strcmp(cmdtext,"/prediobpn",true)==0)
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
SendClientMessage(playerid, COLOR_GREY, "Voce nгo tem autorizaзгo para usar esse comando!");
return 1;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"",4000,6);
LinkVehicleToInterior(vehicleid,0);
SetPlayerInterior(playerid,0);
return SetVehiclePos(vehicleid,1557.8494,-1369.8411,330.0000);
}
SetPlayerPos(playerid,1557.8494,-1369.8411,330.0000);
SetPlayerInterior(playerid,0);
return 1;
}



Re: Ajuda sobre esse codigo aki - Marlonxv - 23.09.2013

Quote:

C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\pawno\include\servermoneyGM.inc(16) : error 004: function "GMExit" is not implemented
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\pawno\include\servermoneyGM.inc(47) : error 004: function "OnPlayerHaveExtraCash" is not implemented
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(931) : error 004: function "SaveCars" is not implemented
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(3327) : error 017: undefined symbol "IsPlayerInCircle"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(3312) : warning 203: symbol is never used: "radius"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(3480) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(3526) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(429 : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5027) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5047) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5074) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5092) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5555) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5597) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5639) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5681) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5710) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5739) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(576 : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5797) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5826) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5874) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5903) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5954) : error 017: undefined symbol "IsNumero"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(5987) : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(602 : error 017: undefined symbol "GetPlayerOrg"
C:\Documents and Settings\Marlon\Desktop\Brasil Project New 0.3a\gamemodes\BPN.pwn(6045) : error 017: undefined symbol "GetPlayerOrg"

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


26 Errors.

deu isso


Re: Ajuda sobre esse codigo aki - Marlonxv - 23.09.2013

no meu gm e assim:

Код:
if(strcmp(cmd, "/ircasa", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
	        if(PlayerInfo[playerid][pAdmin] < 1337)
			{
	            SendClientMessage(playerid, COLOR_GREY, "Voce nгo tem autorizaзгo para usar esse comando!");
	            return 1;
	        }
	        if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
				return 1;
			}
        	tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /ircasa [ID]");
				return 1;
			}
			new Casa;
			Casa = strval(tmp);
			SetPlayerPos(playerid,HouseInfo[Casa][hEntrancex],HouseInfo[Casa][hEntrancey],HouseInfo[Casa][hEntrancez]);
			return 1;
		}
		return 1;
	}



Re: Ajuda sobre esse codigo aki - Sti - 23.09.2013

Editei minha Postagem /\ - 1º Postagem !



Re: Ajuda sobre esse codigo aki - Marlonxv - 23.09.2013

Vlw mesmo cara, poderia me ajudar sу em mais uma coisinha?


Re: Ajuda sobre esse codigo aki - arakuta - 23.09.2013

Se tu falasse o que era, jб poderнamos ter lhe ajudado.


Re: Ajuda sobre esse codigo aki - Marlonxv - 23.09.2013

bom eu queria ajustar o aluguel dos veiculo do meu servidor o preзo й tudo 800 sу que nгo sei aumentar um cara falou para mim como й sу que nгo entendi nada