I need some help with a couple of things.
#1

I need some help with a couple of things.

1. When i type /parkour1 i got to parkour1 when i type /parkour2 i still go to 1 and the teles are different.

2. Change CreateVehicle(541,X,Y,Z,158,158,158,15; color.

3. Flooting text.

4. Re-spawn back in /ak47 after killed and take cash from killed and give to killer.

5. Over 1/2 of my Object is not loading I'm using '' Fall Out Object Streamer ''.

6.Text like this on bottom of screen that changes every 45 sec to 1 min.


I would really appreciate your help! I need to fix #5 first.

Thank you...
Mr_Pryor



pawn Код:
if (strcmp("/Nrgparkour1", cmdtext, true, 4) == 0)
    {
        if(DMZone[playerid] == 1) return SendClientMessage(playerid,red,"Error: You're in DM area, type /leavedm to leave Dm Area ");
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ResetPlayerWeapons(playerid);
    SetVehiclePos(GetPlayerVehicleID(playerid),-2592.12,1394.35,7.18);
    }else
    {
        SetPlayerPos(playerid, -2592.12,1394.35,7.18);
        SendClientMessage(playerid, 0xFF0000FF, "Nrg Parkour 1");
    }
    return 1;

    if (strcmp("/Nrgparkour2", cmdtext, true, 4) == 0)
    {
        if(DMZone[playerid] == 1) return SendClientMessage(playerid,red,"Error: You're in DM area, type /leavedm to leave Dm Area ");
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ResetPlayerWeapons(playerid);
    SetVehiclePos(GetPlayerVehicleID(playerid),-2592.12,1394.35,7.18);
    }else
    {
        SetPlayerPos(playerid, -2592.12,1394.35,7.18);
        SendClientMessage(playerid, 0xFF0000FF, "Nrg Parkour 2");
    }
    return 1;


pawn Код:
#include <a_samp>

#pragma tabsize 0


new carsultan;
new carbullet;

public OnGameModeInit()
{
carbullet = CreatePickup(1239,2,-2611.6978,1398.6075,7.1016);
carsultan = CreatePickup(1239,2,-2601.594970, 1392.046142, 7.145373,0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}


public OnPlayerPickUpPickup(playerid, pickupid)
{
      if(pickupid == carbullet)
      {
      new Float:X, Float:Y, Float:Z;
      new created_vehicle_id;
      GetPlayerPos(playerid,X,Y,Z);
      created_vehicle_id = CreateVehicle(541,X,Y,Z,158,158,158,158);
      PutPlayerInVehicle(playerid,created_vehicle_id,0);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1026);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1027);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1029);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1032);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1149);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1141);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1169);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
}
if(pickupid == carsultan)
{
      new Float:X, Float:Y, Float:Z;
      new created_vehicle_id;
      GetPlayerPos(playerid,X,Y,Z);
      created_vehicle_id = CreateVehicle(560,X,Y,Z,158,158,158,158);
      PutPlayerInVehicle(playerid,created_vehicle_id,0);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1026);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1027);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1029);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1032);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1149);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1141);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1169);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
      AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
      }
      return 0;
      }
Reply
#2

give us your code to become more easy to help you
Reply
#3

Can you show us parts of your code? show use the 2 teles, show us the code you have for veh, use [pawn] codes and we will help out
Reply
#4

Quote:
Originally Posted by pryor94
Посмотреть сообщение
pawn Код:
if (strcmp("/Nrgparkour1", cmdtext, true, 4) == 0)
    {
        if(DMZone[playerid] == 1) return SendClientMessage(playerid,red,"Error: You're in DM area, type /leavedm to leave Dm Area ");
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ResetPlayerWeapons(playerid);
    SetVehiclePos(GetPlayerVehicleID(playerid),-2592.12,1394.35,7.18);
    }else
    {
        SetPlayerPos(playerid, -2592.12,1394.35,7.18);
        SendClientMessage(playerid, 0xFF0000FF, "Nrg Parkour 1");
    }
    return 1;

    if (strcmp("/Nrgparkour2", cmdtext, true, 4) == 0)
    {
        if(DMZone[playerid] == 1) return SendClientMessage(playerid,red,"Error: You're in DM area, type /leavedm to leave Dm Area ");
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    ResetPlayerWeapons(playerid);
    SetVehiclePos(GetPlayerVehicleID(playerid),-2592.12,1394.35,7.18);//this line!!! change coords
    }else
    {
        SetPlayerPos(playerid, -2592.12,1394.35,7.18);
        SendClientMessage(playerid, 0xFF0000FF, "Nrg Parkour 2");
    }
    return 1;
you are ending up in same area coz of the coords duh.... Open your eyes!
Your nrg parkour 1 coords = -2592.12,1394.35,7.18
you nrg parkour 2 is same? change the coords of nrg parkour 2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)