Akcja Buttony
Akcja 'Stop ServerProject'
Liberty Unleashed
GTA Multiplayer
Forum graficzne | Tutoriale GIMP Photoshop
Serwery Counter Strike 1.6
Forum serwera sa-mp PolishRPG
GTAModing.pl | Modyfikacje do GTA
exe24
psi247
TruckSerwer
Umieść swój button
Pawno i Lua dla SA-MP i MTA
07 Wrzesień 2010, 19:33:57 pm *
Witamy, Gość. Zaloguj się lub zarejestruj.
Czy dotarł do Ciebie email aktywacyjny?

Zaloguj się podając nazwę użytkownika, hasło i długość sesji
 
   Strona główna   Pomoc Szukaj Kalendarz Zaloguj się Rejestracja Wiki Dodatki  
Strony: [1]   Do dołu
  Drukuj  
Autor Wątek: need help pm dialog system  (Przeczytany 613 razy)
0 użytkowników i 1 Gość przegląda ten wątek.
omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« : 29 Czerwiec 2010, 17:48:33 pm »

need help i need pm system (dialog ) please
« Ostatnia zmiana: 05 Lipiec 2010, 11:49:49 am wysłane przez omarhassan » Zapisane
homie
@Administrator
BigBoss
*****

Piw: +255/-7
Offline Offline

Płeć: Mężczyzna
Wiadomości: 2173



Zobacz profil
« Odpowiedz #1 : 29 Czerwiec 2010, 18:20:24 pm »

What do you mean? Speak more precisely. You want to increase the car's Z after you type a command or what? And entitle your topics properly.
Zapisane

ziomal396
Użytkownik
**

Piw: +3/-0
Offline Offline

Płeć: Mężczyzna
Wiadomości: 51



Zobacz profil
« Odpowiedz #2 : 29 Czerwiec 2010, 19:37:13 pm »

Kod:
SetVehicleVelocity(vehicleid, 0.0, 0.0, 2.0);

P.S. change the topic title to e.g. "Car jump"
Zapisane


Powód: walił konia i nie trafił.
omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #3 : 29 Czerwiec 2010, 23:07:08 pm »

i need complete code from "onplayerkeystatechange" to return 1;
Zapisane
homie
@Administrator
BigBoss
*****

Piw: +255/-7
Offline Offline

Płeć: Mężczyzna
Wiadomości: 2173



Zobacz profil
« Odpowiedz #4 : 29 Czerwiec 2010, 23:11:16 pm »

Zapisane

omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #5 : 29 Czerwiec 2010, 23:17:11 pm »

look in gamemode there
Kod:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK )
{
if(!IsPlayerInAnyVehicle(playerid))
{
new Float:x, Float:y, Float:z, vehicle;
GetPlayerPos(playerid, x, y, z );
GetVehicleWithinDistance(playerid, x, y, z, 20.0, vehicle);
if(IsVehicleToy(vehicle))
{
    PutPlayerInVehicle(playerid, vehicle, 0);
}
}
else
{
new vehicleID = GetPlayerVehicleID(playerid);
if(IsVehicleToy(vehicleID))
{
    if(GetVehicleModel(vehicleID) != 449)
    {
        InCar[playerid] = false;
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    SetPlayerPos(playerid, x+0.5, y, z+1.0);
}
}
}
}
if(newkeys == KEY_SUBMISSION)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerInArea(playerid, 1153.0000, 1307.5000, -2107.5000, -2003.5000) == 1)
        {
        }
        else
        {
            SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);


        }
}
}
return 1;
}
this to car jump code
Zapisane
Tommy
Foo Fighter
$Junior Admin
Dyktator
*****

Piw: +172/-0
Offline Offline

Płeć: Mężczyzna
Wiadomości: 1367



Zobacz profil
« Odpowiedz #6 : 29 Czerwiec 2010, 23:23:11 pm »

Car Jump script:
Kod:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & HERE_YOUR_KEY && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // if player pressed a key and he is a car driver...
    {
        new Float:X, Float:Y, Float:Z;
        new vehicleid = GetPlayerVehicleID(playerid);

        GetVehicleVelocity(vehicleid, X, Y, Z); // getting player vehicle velocity
        SetVehicleVelocity(vehicleid, X, Y, Z + 0.2); // car jump!
    }

    return 1;
}
It should work fine. Instead of 'HERE_YOUR_KEY' put ID of key. Here is a list of all keys:
Kod:
// Keys
#define KEY_ACTION (1)
#define KEY_CROUCH (2)
#define KEY_FIRE (4)
#define KEY_SPRINT (8)
#define KEY_SECONDARY_ATTACK (16)
#define KEY_JUMP (32)
#define KEY_LOOK_RIGHT (64)
#define KEY_HANDBRAKE (128)
#define KEY_LOOK_LEFT (256)
#define KEY_SUBMISSION (512)
#define KEY_LOOK_BEHIND (512)
#define KEY_WALK (1024)
#define KEY_ANALOG_UP (2048)
#define KEY_ANALOG_DOWN (4096)
#define KEY_ANALOG_LEFT (8192)
#define KEY_ANALOG_RIGHT (16384)

#define KEY_UP (-128)
#define KEY_DOWN (128)
#define KEY_LEFT (-128)
#define KEY_RIGHT (128)
Zapisane

omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #7 : 29 Czerwiec 2010, 23:33:51 pm »

i relly thanks but i need a high player jump
Zapisane
omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #8 : 29 Czerwiec 2010, 23:48:39 pm »

relly thanks but i need a high player jump
where's help[fast]
Zapisane
omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #9 : 29 Czerwiec 2010, 23:52:22 pm »

i need it auto open or with command (please if you can make it with command)
Zapisane
omarhassan
Członek
*

Piw: +0/-0
Offline Offline

Wiadomości: 8


Zobacz profil
« Odpowiedz #10 : 30 Czerwiec 2010, 00:04:00 am »

omarhassan, 4KicuR, Chrusta and 0 Guests are viewing this topic.  reply
fast

Powód: Spam
Zapisane
kkuba
~Przyjaciel
BigBoss
*****

Piw: +150/-75
Offline Offline

Płeć: Mężczyzna
Wiadomości: 1945



Zobacz profil
« Odpowiedz #11 : 30 Czerwiec 2010, 12:37:42 pm »

wypierdalaj w podskokach idioto skończony.

Powód: Spam.
Zapisane

"Tchórz umiera tysiąc razy, a bohater tylko raz... "

xmpp: kkuba@damnsoft.net
kkuba
~Przyjaciel
BigBoss
*****

Piw: +150/-75
Offline Offline

Płeć: Mężczyzna
Wiadomości: 1945



Zobacz profil
« Odpowiedz #12 : 30 Czerwiec 2010, 12:37:54 pm »

białasie.

Powód: Double post.
Zapisane

"Tchórz umiera tysiąc razy, a bohater tylko raz... "

xmpp: kkuba@damnsoft.net
Strony: [1]   Do góry
  Drukuj  
 
Skocz do:  

Reklama
Działa na MySQL Działa na PHP Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC | Sitemap Prawidłowy XHTML 1.0! Prawidłowy CSS!
Strona wygenerowana w 0.072 sekund z 23 zapytaniami.