Como reserver carros para org?
#1

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

Olha Este Tutorial :

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)