SA-MP Forums Archive
Como reserver carros para org? - 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: Como reserver carros para org? (/showthread.php?tid=216015)



Como reserver carros para org? - Ritz88 - 24.01.2011

olб galera sou novo em pwn queria saber como reservar carros
uso gamemode bps


Re: Como reserver carros para org? - Kruger - 24.01.2011

Olha Este Tutorial :

https://sampforum.blast.hk/showthread.php?tid=152457


Re: Como reserver carros para org? - Macintosh - 24.01.2011

Topo GM

pawn Код:
new TesteCars[5];
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(vid==TesteCars[0]||vid==TesteCars[1]||vid==TesteCars[2]||vid==TesteCars[3]||vid==TesteCars[4])
 {
   if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
  {
  }
  else
 {
  SendClientMessage(playerid,COLOR_GREY,"Vocк nгo й dos Ballas");
  RemovePlayerFromVehicle(playerid);
  TogglePlayerControllable(playerid, 1);
  }
}
pawn Код:
public OnGameModeInit()
{
TesteCars[0] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[1] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[2] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0;
TesteCars[3] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
TesteCars[4] = AddStaticVehicleEx(ID,X,Y,Z,COR,COR,0);
return 0;
}



Re: Como reserver carros para org? - GuikBretas - 26.01.2011

deu esse erro
D:\LARP\larp.pwn(8360) : error 017: undefined symbol "vid"

Linha:
pawn Код:
if(vid==AnarchyCar[0]||vid==AnarchyCar[1])
@EDIT:
eu puis isso:
pawn Код:
new vehid;
    vehid = GetPlayerVehicleID(playerid)
    if(vehid==AnarchyCar[0]||vehid==AnarchyCar[1])
e deu certo
sу que agora apareceu assim:
Vocк nгo й dos Anarchy
Vocк nгo й Guarda Nacional
Digite /motor ou aperte Shift/Enter para ligar o Motor


Re: Como reserver carros para org? - Macintosh - 26.01.2011

pawn Код:
new vid = GetPlayerVehicleID(playerid);