Jump to content
  • 0

pomoc Pickup


Fellas

Dotaz

Zdravim mám tu problém s tvořením pickupu vůbec nevím kde je problém tak prosím o pomoc. Můj postup.

 

1) Uložil jsem ve hře pozici /save yakuza

2)Šel jsem do GTA user files a tam do txt dokumentu kam se to uložilo. Zde bylo toto:

 

AddPlayerClass(110,1914.3612,954.1548,10.8203,176.0861,0,0,0,0,0,0); // yakuza

 

3) Dal jsem ony souřadnice do pwn na pickupy:

 

#include

 

new balik[10];

public OnFilterScriptInit()

{

balik[0] = CreatePickup(2061, 2, 1914.3612,954.1548,10.8203, -1);

return 1;

}

 

public OnFilterScriptExit()

{

return 1;

}

 

public OnPlayerPickUpPickup(playerid, pickupid)

{

if(pickupid == balik[0])

{

GivePlayerWeapon(playerid, 26, 999); // 26 = ID zbraně | 999 = počet nábojů

SendClientMessage(playerid, 0xFFFFFFAA, "[ {00FF00}!{FFFFFF} ] Našel jsi Sawny s 999 náboji!");

return 0;

}

return 1;

}

 

4) Dal jsem to do .AMX (bez problému) a restartoval server.

5) Na onom místě nic není. A to je ten problém.

 

Díky za pomoc.

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

#include 
new balik;
public OnFilterScriptInit(){
balik = CreatePickup(2061, 2, 1914.3612,954.1548,10.8203, -1);
return 1;}
public OnPlayerPickUpPickup(playerid, pickupid){
if(pickupid == balik){
GivePlayerWeapon(playerid, 26, 999);
SendClientMessage(playerid, 0xFFFFFFAA, "[ {00FF00}!{FFFFFF} ] Našel jsi Sawny s 999 náboji!");
return 0;}
return 1;}

 

skús to takto

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...