[Ajuda] VerificacaoІ
#1

Ola, estou com uma duvida, eu fiz esse sistema mais nao funciona no veiculo ID 411

public OnPlayerConnect(playerid)
PHP код:
{
   
SetTimerEx("Altura"500true"i"playerid);
   return 
1;
}
forward Altura(playerid);
public 
Altura(playerid)
{
  
GetPlayerPos(playeridX,Z);
  
GetVehicleModel(MyV);
  if(
>= 280.00000 && MaioR[playerid] == 0)
   {
    if(
GetVehicleModel(MyV) == 411)
     {
      
TextDrawShowForPlayer(playeridBlack);
      
SetTimerEx("Acordar"8000true"i"playerid);
          
TogglePlayerControllable(playerid,0);
      
MaioR[playerid] = 1;
         }
   } 
  return 
1;
}
forward Acordar(playerid);
public 
Acordar(playerid)
{
 
GetPlayerPos(playeridX,Z);
 if(
<= 200.00000 && MaioR[playerid] == 1)
  {
   
TogglePlayerControllable(playerid,1);
   
TextDrawHideForPlayer(playeridBlack);
   
MaioR[playerid] = 0;
   return 
1;
  }
 return 
1;

e Gostaria de saber como deixa-lo mais organizado.

OBS: Ele sу ta tao desorganizado aqui no fуrum.
Reply
#2

GetVehicleModel(MyV)
Por:
PHP код:
new idveiculo GetPlayerVehicleID(playerid);
if(
idveiculo == 411

Reply
#3

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
GetVehicleModel(MyV)
Por:
PHP код:
new idveiculo GetPlayerVehicleID(playerid);
if(
idveiculo == 411

nгo funcionou
Reply
#4

Brother qual comando vocк estб usando para criar o veнculo para vocк testar? se estiver usando um comando poste aqui ou se nгo poste a forma que vocк estб criando o veнculo.
Reply
#5

O Veiculo esta sendo criado no proprio FS mano, em onFilterscriptInit
Reply
#6

Me manda o cуdigo aqui de criaзгo
Reply
#7

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
Me manda o cуdigo aqui de criaзгo

PHP код:
#define FILTERSCRIPT
#include <a_samp>
#include <ZCMD>
#if defined FILTERSCRIPT
new MaioR[MAX_PLAYERS];
new 
Text:Black;
new 
Float:XFloat:YFloat:Z;
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    
CreateVehicle(476310.34352033.991920.7879539.9305, -1, -1100);  // DELETAR
    
CreateVehicle(470323.40541981.335017.44250.0000, -1, -1100);    // DELETAR
    
    
Black TextDrawCreate(680.000000, -40.000000"      ");
    
TextDrawBackgroundColor(Black255);
    
TextDrawFont(Black1);
    
TextDrawLetterSize(Black, -1.00000011.000000);
    
TextDrawColor(Black, -1);
    
TextDrawSetOutline(Black0);
    
TextDrawUseBox(Black1);
    
TextDrawBoxColor(Black255);
    
TextDrawTextSize(Black, -40.000000120.000000);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
   
SetTimerEx("Altura"500true"i"playerid);
   
SendClientMessage(playerid, -1"LOADED WITH SUCESSFUL !");
   return 
1;
}
forward Altura(playerid);
public 
Altura(playerid)
{
  new 
idveiculo GetPlayerVehicleID(playerid);
  if(
>= 280.00000 && MaioR[playerid] == 0)
   {
    if(
idveiculo == 476)
     {
      
SendClientMessage(playerid, -1"Vocк esta a cima de 280 Pкs sem mascara, vocк ficara desacordado por alguns Segundos {ff0000}Cuidado {ffffff}!");
      
TextDrawShowForPlayer(playeridBlack);
      
SetTimerEx("Acordar"8000true"i"playerid);
      
TogglePlayerControllable(playerid,0);
      
MaioR[playerid] = 1;
     }
     else if(
idveiculo != 476)
     {
       
SendClientMessage(playerid, -1"NAO E O ID 476");
     }
    }
  return 
1;
}
forward Acordar(playerid);
public 
Acordar(playerid)
{
 
GetPlayerPos(playeridX,Z);
 if(
<= 200.00000 && MaioR[playerid] == 1)
  {
   
TogglePlayerControllable(playerid,1);
   
TextDrawHideForPlayer(playeridBlack);
   
MaioR[playerid] = 0;
   return 
1;
  }
 return 
1;
}
#endif 
Reply
#8

Alguem ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)