[Ajuda] Player Corre Mais Rapido
#1


Bom fiz este codigo para o player correr mais rapido mais nao funciona auguem pode me ajudar a resolver o poblema

PHP код:
new SpeedHaMAX_PLAYERS ] = false;
CMD:speedpplayerid )
{
        
SpeedHa[playerid] = 1;
        
SendClientMessage(playeridRoxo"Speed-Hacker Ativado");
        return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
   if( 
newkeys KEY_UP )
   {
          if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridRoxo"Vocк Nao pode Usar Speed-Hacker No Vehiculo");
          new 
Float:Jump[3];
          
GetPlayerVelocity(playeridJump[0], Jump[1], Jump[2]);
          
SetPlayerVelocity(playeridJump[0]*3Jump[1]*3Jump[2]);
   }
   return 
1;

Reply
#2

Tenta

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
 if( newkeys & KEY_UP )
 {
     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Roxo, "Vocк Nao pode Usar Speed-Hacker No Vehiculo");
  new Float:Jump[3];
  SpeedHa[playerid] --;
  if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  {
  GetPlayerVelocity(playerid, Jump[0], Jump[1], Jump[2]);
  SetPlayerVelocity(playerid, Jump[0]*3, Jump[1]*3, Jump[2]);
  }
 }
 return 1;
}
Reply
#3

Quote:
Originally Posted by dEvasT._
Посмотреть сообщение
Tenta

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
 if( newkeys & KEY_UP )
 {
     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Roxo, "Vocк Nao pode Usar Speed-Hacker No Vehiculo");
  new Float:Jump[3];
  SpeedHa[playerid] --;
  if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  {
  GetPlayerVelocity(playerid, Jump[0], Jump[1], Jump[2]);
  SetPlayerVelocity(playerid, Jump[0]*3, Jump[1]*3, Jump[2]);
  }
 }
 return 1;
}
Eu mudei a tecla ficou assim
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if( 
newkeys KEY_CTRL_BACK )
    {
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridRoxo"Vocк Nao pode Usar Speed-Hacker No Vehiculo");
        new 
Float:Jump[3];
        
SpeedHa[playerid] --;
        
SetPlayerHealth(playerid5000);
        if (
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            
GetPlayerVelocity(playeridJump[0], Jump[1], Jump[2]);
            
SetPlayerVelocity(playeridJump[0]*3Jump[1]*3Jump[2]);
        }
    }
    return 
1;

mais tipo na hora que pulo o cara nao corre rapido ele quase voa kk HELP!
Reply
#4

Quote:
Originally Posted by RoberteDl
Посмотреть сообщение
Eu mudei a tecla ficou assim
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if( 
newkeys KEY_CTRL_BACK )
    {
        if(
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridRoxo"Vocк Nao pode Usar Speed-Hacker No Vehiculo");
        new 
Float:Jump[3];
        
SpeedHa[playerid] --;
        
SetPlayerHealth(playerid5000);
        if (
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            
GetPlayerVelocity(playeridJump[0], Jump[1], Jump[2]);
            
SetPlayerVelocity(playeridJump[0]*3Jump[1]*3Jump[2]);
        }
    }
    return 
1;

mais tipo na hora que pulo o cara nao corre rapido ele quase voa kk HELP!
Tenta
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if( newkeys & KEY_CTRL_BACK )
    {
        if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Roxo, "Vocк Nao pode Usar Speed-Hacker No Vehiculo");
        new Float:Jump[3];
        SpeedHa[playerid] --;
        SetPlayerHealth(playerid, 5000);
        if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
        {
            GetPlayerVelocity(playerid, Jump[0], Jump[1], Jump[2]);
            SetPlayerVelocity(playerid, Jump[0]*2, Jump[1]*3, Jump[2]);
        }
    }
    return 1;
}
Reply
#5

nao deu
Reply
#6

Auguem ai Pode Me Ajudar ?
Reply
#7

Descupa O Triple Post Mais Quero juda HELP porfavor
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)