[DUV] Veiculo com DONO por NICK - 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: [DUV] Veiculo com DONO por NICK (
/showthread.php?tid=170090)
[DUV] Veiculo com DONO por NICK -
luandriftlogkdr - 21.08.2010
Bom segue o Exemplo:
pawn Код:
new CarroLuan;
CarroLuan = AddStaticVehicle.....
forward Veiculoprivado(carid);
public Veiculoprivado(carid)
{
if(carid == CarroLuan)
{
return 1;
}
return 0;
}
if(VeiculoPrivado(newcar))
{
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3) { if(OnDuty[playerid] != 1) { SendClientMessage(playerid, COLOR_GRAD2, "Voce nao estao de servico!"); return 1; } }
else
{
SendClientMessage(playerid,COLOR_GREY," Este veiculo pertence ao ADM: Luan!");
RemovePlayerFromVehicle(playerid);
}
}
Mas no Lugar de
pawn Код:
if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3) { if(OnDuty[playerid] != 1) {
Devo colocar oq?
Respuesta: [DUV] Veiculo com DONO por NICK -
ipsBruno - 22.08.2010
@luandriftlogkdr
Topo:
pawn Код:
new arraycar;
arraycar = CreateVehicle(..)
Em OnPlayerEnterVehicle
pawn Код:
new name[24];
GetPlayerName(playerid, name,24);
if(vehicleid == arraycar)
{
if(!strcmp(name, "RoXKilL", true) == 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,"Vocк nгo й Ele");
}
}
Re: [DUV] Veiculo com DONO por NICK -
corte mc - 22.08.2010
KKKK mano do geito ke vc ves ta errado pk num server RPG isso nao ia pegar
[pMembro] e a defeniзao que define a org/gang de uma player (em RPG)
Respuesta: [DUV] Veiculo com DONO por NICK -
ipsBruno - 22.08.2010
@corte mc
Isto sгo enumeraзхes (ENUM) e pode ter em qualquer servidor assim como o meu servidor tem
pGang,pMembro,PLнder entre outras coisas,cuide com o que fale caso nгo saiba..
Re: [DUV] Veiculo com DONO por NICK -
BlackFin - 22.08.2010
Quote:
Originally Posted by corte mc
KKKK mano do geito ke vc ves ta errado pk num server RPG isso nao ia pegar
[pMembro] e a defeniзao que define a org/gang de uma player (em RPG)
|
Nгo brinca.
Ele falou por nick e nгo por gang/org
Re: [DUV] Veiculo com DONO por NICK -
corte mc - 22.08.2010
e mas eu falei se foce para um sv RPG
OUTRa coisa onde ta a linha ke define o id do veiculo?