Equipar apertando "F". -
ghbraz - 05.05.2013
Fala ai galera do SAMP , queria que alguem fizesse pra mim, ou me falasse como faz , um Pickup de Equipar para uma devida org , de forma que ao apertar 'F' , os equipamentos vкm...
Tentei fazer com new pickup1 , sу que nгo funcionou , eu utilizo o GM do Brasil Play Project , mas editei tudo e mudei o nome... Queria saber como fazer isto!! Agradeзo desde jб а quem me ajudar!!
:r olleyes:
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
xRaZeR - 05.05.2013
https://sampforum.blast.hk/showthread.php?tid=259611
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
ghbraz - 05.05.2013
Eu estou tentando mais nгo compila , dб um tanto de erros , vou tentar denovo , nгo tou entendendo bem...
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
Exco - 05.05.2013
No OnGameModeInit
Код:
CreatePickup(MODELO,TIPO,X,Y,Z);
No OnPlayerKeyStateChange:
Код:
if(newkeys & 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
if (PlayerToPoint(1, playerid,X,Y,Z))//COLOCA O LUGAR DA PICKUP
{
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 30, 200);
}
}
Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
FixSkuL - 05.05.2013
Cara eu jб te passei o link no outro tуpico. Aquilo funciona....
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
ghbraz - 05.05.2013
Eu tentei e nгo funfou FixSkuL... Vo pedir entгo de outra forma ... Se der , faзam um Filterscript pra mim , que eu edito as coordenadas , pode ser?? Acho qe eu q nгo tou sabendo fazer..
Re: [PEDIDO de TUTORIAL] Equipar apertando "F". -
ghbraz - 05.05.2013
Veja e Veja:
Код:
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(1459) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(3257) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(3301) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(6525) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(6620) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(6635) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(6682) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(6697) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(7981) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(7990) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8000) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8010) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8019) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8028) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8037) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8046) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(8055) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(9152) : warning 219: local variable "string" shadows a variable at a preceding level
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11168) : error 021: symbol already defined: "SetTimer"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11170) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11171) : error 021: symbol already defined: "LoadAdm"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11174) : error 021: symbol already defined: "SetTimer"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11208) : error 021: symbol already defined: "Create3DTextLabel"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11265) : error 021: symbol already defined: "Create3DTextLabel"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11287) : error 021: symbol already defined: "SetTimer"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11295) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11303) : error 021: symbol already defined: "LoadProperty"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11304) : error 021: symbol already defined: "LoadBizz"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11305) : error 021: symbol already defined: "LoadSBizz"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11306) : error 021: symbol already defined: "LoadBoxer"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11307) : error 021: symbol already defined: "LoadStuff"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11308) : error 021: symbol already defined: "LoadIRC"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11310) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11315) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11332) : error 021: symbol already defined: "LoadVip"
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11343) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11348) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11353) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11355) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11361) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11364) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11369) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11376) : error 010: invalid function or declaration
G:\GTA Creating my Servidor 2\Brasil Texas Gam,es 0.3XXXXXXXXXXXD\gamemodes\BTA$Orgtvup.pwn(11378) : error 010: invalid function or declaration
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.