Napravio:Gimini
Editovao:Stexi
Komande:
/bacioruzije ili /boruzije i /podignioruzije ili /poruzije
Uzeo sam FS od nxidze taj je bio na engl pa sam preveo ..
Ne trebaju slike svi znate sta znaci 🙂
Download:
http://www.2shared.com/file/fgrhOl_5/FSDropGun.html
Preuzeto odavde:
http://balkan-samp.com/forum/index.php?topic=16755.0
[FS]DropGun system
4,200
pregleda
11
postova
28. Apr. 2011.
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
28. Apr. 2011.
matematicar wrote on April 28, 2011, 12:03 pm:
FS na Samp Forumu TEMA: http://forum.sa-mp.com/showthread.php?t=151633&highlight=DropGun
#include
#define MAX_OBJ 50 // Limit
// -----------------------------------------------------------------------------
new Float:ObjCoords;
new object;
new ObjectID;
// -----------------------------------------------------------------------------
new GunNames[] = {
"Nothink",
"Brass Knuckles",
"Golf Club",
"Nitestick",
"Knife",
"Baseball Bat",
"Showel",
"Pool Cue",
"Katana",
"Chainsaw",
"Purple Dildo",
"Small White Dildo",
"Long White Dildo",
"Vibrator",
"Flowers",
"Cane",
"Grenade",
"Tear Gas",
"Molotov",
"Vehicle Missile",
"Hydra Flare",
"Jetpack",
"Glock",
"Silenced Colt",
"Desert Eagle",
"Shotgun",
"Sawn Off",
"Combat Shotgun",
"Micro UZI",
"MP5",
"AK47",
"M4",
"Tec9",
"Rifle",
"Sniper Rifle",
"Rocket Launcher",
"HS Rocket Launcher",
"Flamethrower",
"Minigun",
"Satchel Charge",
"Detonator",
"Spraycan",
"Fire Extinguisher",
"Camera",
"Nightvision",
"Infrared Vision",
"Parachute",
"Fake Pistol"
};
// -----------------------------------------------------------------------------
new GunObjects = { // (c) gimini
{0},// Emty
{331},// Brass Knuckles
{333},// Golf Club
{334},// Nitestick
{335},// Knife
{336},// Baseball Bat
{337},// Showel
{338},// Pool Cue
{339},// Katana
{341},// Chainsaw
{321},// Purple Dildo
{322},// Small White Dildo
{323},// Long White Dildo
{324},// Vibrator
{325},// Flowers
{326},// Cane
{342},// Grenade
{343},// Tear Gas
{344},// Molotov
{0},
{0},
{0},
{346},// Glock
{347},// Silenced Colt
{348},// Desert Eagle
{349},// Shotgun
{350},// Sawn Off
{351},// Combat Shotgun
{352},// Micro UZI
{353},// MP5
{355},// AK47
{356},// M4
{372},// Tec9
{357},// Rifle
{358},// Sniper Rifle
{359},// Rocket Launcher
{360},// HS Rocket Launcher
{361},// Flamethrower
{362},// Minigun
{363},// Detonator
{364},// Detonator Button
{365},// Spraycan
{366},// Fire Extinguisher
{367},// Camera
{368},// Nightvision
{368},// Infrared Vision
{371}// Parachute
};
// -----------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Drop Gun By gimini (c)");
print(" Do not remove copyright!!!");
print(" Version 1.2");
print("--------------------------------------\n");
return 1;
}
// -----------------------------------------------------------------------------
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Drop Gun FS 1.2 successfully unloaded!");
print("\n--------------------------------------");
return 1;
}
// -----------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/dropgun", true) == 0 || strcmp(cmd, "/dgun", true) == 0)
{
new gunID = GetPlayerWeapon(playerid);
new gunAmmo = GetPlayerAmmo(playerid);
if(gunID != 0 && gunAmmo != 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(ObjCoords == 0.0)
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "You can not throw weapons at the moment, try back later!!");
new gunname;
new buffer;
GetWeaponNameEx(gunID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "You threw %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
RemovePlayerWeapon(playerid, gunID);
ObjectID = gunID;
ObjectID = gunAmmo;
GetPlayerPos(playerid, ObjCoords, ObjCoords, ObjCoords);
object = CreateObject(GunObjects,ObjCoords,ObjCoords,ObjCoords-1,93.7,120.0,120.0);
return 1;
}
}
if(strcmp(cmd, "/pickupgun", true) == 0 || strcmp(cmd, "/pgun", true) == 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords, ObjCoords, ObjCoords))
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "You are not near the weapon which you can pick up!");
else
{
new gunname;
new buffer;
ObjCoords = 0.0;
ObjCoords = 0.0;
ObjCoords = 0.0;
DestroyObject(object);
GivePlayerWeapon(playerid, ObjectID, ObjectID);
GetWeaponNameEx(ObjectID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "You picked up %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
}
return 1;
}
return 0;
}
// -----------------------------------------------------------------------------
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames);
stock RemovePlayerWeapon(playerid, weaponid);
public RemovePlayerWeapon(playerid, weaponid)
{ // Not mine :3
new plyWeapons = 0;
new plyAmmo = 0;
for(new sslot = 0; sslot != 12; sslot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, sslot, wep, ammo);
if(wep != weaponid && ammo != 0) GetPlayerWeaponData(playerid, sslot, plyWeapons, plyAmmo);
}
ResetPlayerWeapons(playerid);
for(new sslot = 0; sslot != 12; sslot++)
{
if(plyAmmo != 0) GivePlayerWeapon(playerid, plyWeapons, plyAmmo);
}
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
Tvoja FS
#include
#define MAX_OBJ 50 // Limit
// -----------------------------------------------------------------------------
new Float:ObjCoords;
new object;
new ObjectID;
// -----------------------------------------------------------------------------
new GunNames[] = {
"Saka",
"Bokser",
"Palica za golf",
"Pendrek",
"Noz",
"Palica",
"Lopata",
"Stap",
"Kineski mac",
"Testera",
"Debeli kurton",
"Mali beli kurton",
"Veliki beli kurton",
"Vibrator",
"Cvece",
"Stap",
"Granata",
"Dimna bomba",
"Vatrena flasa",
"Vehicle Missile",
"Hydra Flare",
"Jetpack",
"Glok",
"Pistolj sa prigusivacem",
"Dezert",
"Pumparica",
"Sacmara",
"Jaca sacmara",
"Uzi",
"Hekler",
"Kalas",
"Emara",
"Tec9",
"Rafalni snajper",
"Snajper",
"Izbacivac raketa",
"Izbacivac pratecih raketa",
"Aparat za paljenje",
"Minigun",
"Bombe u obliku torbice",
"Detonator",
"Sprej",
"Aparat za gasenje pozara",
"Kamera",
"Nightvision",
"Crveni nightvision",
"Padobran",
"Lazni pistolj"
};
// -----------------------------------------------------------------------------
new GunObjects = { // (c) gimini
{0},// Emty
{331},// Brass Knuckles
{333},// Golf Club
{334},// Nitestick
{335},// Knife
{336},// Baseball Bat
{337},// Showel
{338},// Pool Cue
{339},// Katana
{341},// Chainsaw
{321},// Purple Dildo
{322},// Small White Dildo
{323},// Long White Dildo
{324},// Vibrator
{325},// Flowers
{326},// Cane
{342},// Grenade
{343},// Tear Gas
{344},// Molotov
{0},
{0},
{0},
{346},// Glock
{347},// Silenced Colt
{348},// Desert Eagle
{349},// Shotgun
{350},// Sawn Off
{351},// Combat Shotgun
{352},// Micro UZI
{353},// MP5
{355},// AK47
{356},// M4
{372},// Tec9
{357},// Rifle
{358},// Sniper Rifle
{359},// Rocket Launcher
{360},// HS Rocket Launcher
{361},// Flamethrower
{362},// Minigun
{363},// Detonator
{364},// Detonator Button
{365},// Spraycan
{366},// Fire Extinguisher
{367},// Camera
{368},// Nightvision
{368},// Infrared Vision
{371}// Parachute
};
// -----------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Drop Gun By gimini Ediy by Stexi(c)");
print(" Do not remove copyright!!!");
print(" Verzija 1.2");
print("--------------------------------------\n");
return 1;
}
// -----------------------------------------------------------------------------
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Drop Gun FS 1.2 uspesno ucitan!");
print("\n--------------------------------------");
return 1;
}
// -----------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/bacioruzije", true) == 0 || strcmp(cmd, "/boruzije", true) == 0)
{
new gunID = GetPlayerWeapon(playerid);
new gunAmmo = GetPlayerAmmo(playerid);
if(gunID != 0 && gunAmmo != 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(ObjCoords == 0.0)
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "Ne mozete da bacite oruzije u ovom trenutku,pokusajte kasnije!");
new gunname;
new buffer;
GetWeaponNameEx(gunID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "Bacio si oruzije %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
RemovePlayerWeapon(playerid, gunID);
ObjectID = gunID;
ObjectID = gunAmmo;
GetPlayerPos(playerid, ObjCoords, ObjCoords, ObjCoords);
object = CreateObject(GunObjects,ObjCoords,ObjCoords,ObjCoords-1,93.7,120.0,120.0);
return 1;
}
}
if(strcmp(cmd, "/podignioruzije", true) == 0 || strcmp(cmd, "/poruzije", true) == 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords, ObjCoords, ObjCoords))
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "Niste u blizini ni jednog oruzija!");
else
{
new gunname;
new buffer;
ObjCoords = 0.0;
ObjCoords = 0.0;
ObjCoords = 0.0;
DestroyObject(object);
GivePlayerWeapon(playerid, ObjectID, ObjectID);
GetWeaponNameEx(ObjectID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "Podigao si oruzije %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
}
return 1;
}
return 0;
}
// -----------------------------------------------------------------------------
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames);
stock RemovePlayerWeapon(playerid, weaponid);
public RemovePlayerWeapon(playerid, weaponid)
{ // Not mine :3
new plyWeapons = 0;
new plyAmmo = 0;
for(new sslot = 0; sslot != 12; sslot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, sslot, wep, ammo);
if(wep != weaponid && ammo != 0) GetPlayerWeaponData(playerid, sslot, plyWeapons, plyAmmo);
}
ResetPlayerWeapons(playerid);
for(new sslot = 0; sslot != 12; sslot++)
{
if(plyAmmo != 0) GivePlayerWeapon(playerid, plyWeapons, plyAmmo);
}
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
Samo Preveo Imena orzuja i 3 komande preveo i to je znaci tvoj😕
#include
#define MAX_OBJ 50 // Limit
// -----------------------------------------------------------------------------
new Float:ObjCoords;
new object;
new ObjectID;
// -----------------------------------------------------------------------------
new GunNames[] = {
"Nothink",
"Brass Knuckles",
"Golf Club",
"Nitestick",
"Knife",
"Baseball Bat",
"Showel",
"Pool Cue",
"Katana",
"Chainsaw",
"Purple Dildo",
"Small White Dildo",
"Long White Dildo",
"Vibrator",
"Flowers",
"Cane",
"Grenade",
"Tear Gas",
"Molotov",
"Vehicle Missile",
"Hydra Flare",
"Jetpack",
"Glock",
"Silenced Colt",
"Desert Eagle",
"Shotgun",
"Sawn Off",
"Combat Shotgun",
"Micro UZI",
"MP5",
"AK47",
"M4",
"Tec9",
"Rifle",
"Sniper Rifle",
"Rocket Launcher",
"HS Rocket Launcher",
"Flamethrower",
"Minigun",
"Satchel Charge",
"Detonator",
"Spraycan",
"Fire Extinguisher",
"Camera",
"Nightvision",
"Infrared Vision",
"Parachute",
"Fake Pistol"
};
// -----------------------------------------------------------------------------
new GunObjects = { // (c) gimini
{0},// Emty
{331},// Brass Knuckles
{333},// Golf Club
{334},// Nitestick
{335},// Knife
{336},// Baseball Bat
{337},// Showel
{338},// Pool Cue
{339},// Katana
{341},// Chainsaw
{321},// Purple Dildo
{322},// Small White Dildo
{323},// Long White Dildo
{324},// Vibrator
{325},// Flowers
{326},// Cane
{342},// Grenade
{343},// Tear Gas
{344},// Molotov
{0},
{0},
{0},
{346},// Glock
{347},// Silenced Colt
{348},// Desert Eagle
{349},// Shotgun
{350},// Sawn Off
{351},// Combat Shotgun
{352},// Micro UZI
{353},// MP5
{355},// AK47
{356},// M4
{372},// Tec9
{357},// Rifle
{358},// Sniper Rifle
{359},// Rocket Launcher
{360},// HS Rocket Launcher
{361},// Flamethrower
{362},// Minigun
{363},// Detonator
{364},// Detonator Button
{365},// Spraycan
{366},// Fire Extinguisher
{367},// Camera
{368},// Nightvision
{368},// Infrared Vision
{371}// Parachute
};
// -----------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Drop Gun By gimini (c)");
print(" Do not remove copyright!!!");
print(" Version 1.2");
print("--------------------------------------\n");
return 1;
}
// -----------------------------------------------------------------------------
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Drop Gun FS 1.2 successfully unloaded!");
print("\n--------------------------------------");
return 1;
}
// -----------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/dropgun", true) == 0 || strcmp(cmd, "/dgun", true) == 0)
{
new gunID = GetPlayerWeapon(playerid);
new gunAmmo = GetPlayerAmmo(playerid);
if(gunID != 0 && gunAmmo != 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(ObjCoords == 0.0)
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "You can not throw weapons at the moment, try back later!!");
new gunname;
new buffer;
GetWeaponNameEx(gunID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "You threw %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
RemovePlayerWeapon(playerid, gunID);
ObjectID = gunID;
ObjectID = gunAmmo;
GetPlayerPos(playerid, ObjCoords, ObjCoords, ObjCoords);
object = CreateObject(GunObjects,ObjCoords,ObjCoords,ObjCoords-1,93.7,120.0,120.0);
return 1;
}
}
if(strcmp(cmd, "/pickupgun", true) == 0 || strcmp(cmd, "/pgun", true) == 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords, ObjCoords, ObjCoords))
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "You are not near the weapon which you can pick up!");
else
{
new gunname;
new buffer;
ObjCoords = 0.0;
ObjCoords = 0.0;
ObjCoords = 0.0;
DestroyObject(object);
GivePlayerWeapon(playerid, ObjectID, ObjectID);
GetWeaponNameEx(ObjectID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "You picked up %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
}
return 1;
}
return 0;
}
// -----------------------------------------------------------------------------
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames);
stock RemovePlayerWeapon(playerid, weaponid);
public RemovePlayerWeapon(playerid, weaponid)
{ // Not mine :3
new plyWeapons = 0;
new plyAmmo = 0;
for(new sslot = 0; sslot != 12; sslot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, sslot, wep, ammo);
if(wep != weaponid && ammo != 0) GetPlayerWeaponData(playerid, sslot, plyWeapons, plyAmmo);
}
ResetPlayerWeapons(playerid);
for(new sslot = 0; sslot != 12; sslot++)
{
if(plyAmmo != 0) GivePlayerWeapon(playerid, plyWeapons, plyAmmo);
}
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
Tvoja FS
#include
#define MAX_OBJ 50 // Limit
// -----------------------------------------------------------------------------
new Float:ObjCoords;
new object;
new ObjectID;
// -----------------------------------------------------------------------------
new GunNames[] = {
"Saka",
"Bokser",
"Palica za golf",
"Pendrek",
"Noz",
"Palica",
"Lopata",
"Stap",
"Kineski mac",
"Testera",
"Debeli kurton",
"Mali beli kurton",
"Veliki beli kurton",
"Vibrator",
"Cvece",
"Stap",
"Granata",
"Dimna bomba",
"Vatrena flasa",
"Vehicle Missile",
"Hydra Flare",
"Jetpack",
"Glok",
"Pistolj sa prigusivacem",
"Dezert",
"Pumparica",
"Sacmara",
"Jaca sacmara",
"Uzi",
"Hekler",
"Kalas",
"Emara",
"Tec9",
"Rafalni snajper",
"Snajper",
"Izbacivac raketa",
"Izbacivac pratecih raketa",
"Aparat za paljenje",
"Minigun",
"Bombe u obliku torbice",
"Detonator",
"Sprej",
"Aparat za gasenje pozara",
"Kamera",
"Nightvision",
"Crveni nightvision",
"Padobran",
"Lazni pistolj"
};
// -----------------------------------------------------------------------------
new GunObjects = { // (c) gimini
{0},// Emty
{331},// Brass Knuckles
{333},// Golf Club
{334},// Nitestick
{335},// Knife
{336},// Baseball Bat
{337},// Showel
{338},// Pool Cue
{339},// Katana
{341},// Chainsaw
{321},// Purple Dildo
{322},// Small White Dildo
{323},// Long White Dildo
{324},// Vibrator
{325},// Flowers
{326},// Cane
{342},// Grenade
{343},// Tear Gas
{344},// Molotov
{0},
{0},
{0},
{346},// Glock
{347},// Silenced Colt
{348},// Desert Eagle
{349},// Shotgun
{350},// Sawn Off
{351},// Combat Shotgun
{352},// Micro UZI
{353},// MP5
{355},// AK47
{356},// M4
{372},// Tec9
{357},// Rifle
{358},// Sniper Rifle
{359},// Rocket Launcher
{360},// HS Rocket Launcher
{361},// Flamethrower
{362},// Minigun
{363},// Detonator
{364},// Detonator Button
{365},// Spraycan
{366},// Fire Extinguisher
{367},// Camera
{368},// Nightvision
{368},// Infrared Vision
{371}// Parachute
};
// -----------------------------------------------------------------------------
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Drop Gun By gimini Ediy by Stexi(c)");
print(" Do not remove copyright!!!");
print(" Verzija 1.2");
print("--------------------------------------\n");
return 1;
}
// -----------------------------------------------------------------------------
public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Drop Gun FS 1.2 uspesno ucitan!");
print("\n--------------------------------------");
return 1;
}
// -----------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/bacioruzije", true) == 0 || strcmp(cmd, "/boruzije", true) == 0)
{
new gunID = GetPlayerWeapon(playerid);
new gunAmmo = GetPlayerAmmo(playerid);
if(gunID != 0 && gunAmmo != 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(ObjCoords == 0.0)
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "Ne mozete da bacite oruzije u ovom trenutku,pokusajte kasnije!");
new gunname;
new buffer;
GetWeaponNameEx(gunID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "Bacio si oruzije %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
RemovePlayerWeapon(playerid, gunID);
ObjectID = gunID;
ObjectID = gunAmmo;
GetPlayerPos(playerid, ObjCoords, ObjCoords, ObjCoords);
object = CreateObject(GunObjects,ObjCoords,ObjCoords,ObjCoords-1,93.7,120.0,120.0);
return 1;
}
}
if(strcmp(cmd, "/podignioruzije", true) == 0 || strcmp(cmd, "/poruzije", true) == 0)
{
new f = MAX_OBJ+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, ObjCoords, ObjCoords, ObjCoords))
{
f = a;
break;
}
}
if(f > MAX_OBJ) return SendClientMessage(playerid, 0x33AA3300, "Niste u blizini ni jednog oruzija!");
else
{
new gunname;
new buffer;
ObjCoords = 0.0;
ObjCoords = 0.0;
ObjCoords = 0.0;
DestroyObject(object);
GivePlayerWeapon(playerid, ObjectID, ObjectID);
GetWeaponNameEx(ObjectID, gunname, sizeof(gunname));
format(buffer, sizeof(buffer), "Podigao si oruzije %s", gunname);
SendClientMessage(playerid, 0x33AA3300, buffer);
}
return 1;
}
return 0;
}
// -----------------------------------------------------------------------------
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames);
stock RemovePlayerWeapon(playerid, weaponid);
public RemovePlayerWeapon(playerid, weaponid)
{ // Not mine :3
new plyWeapons = 0;
new plyAmmo = 0;
for(new sslot = 0; sslot != 12; sslot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, sslot, wep, ammo);
if(wep != weaponid && ammo != 0) GetPlayerWeaponData(playerid, sslot, plyWeapons, plyAmmo);
}
ResetPlayerWeapons(playerid);
for(new sslot = 0; sslot != 12; sslot++)
{
if(plyAmmo != 0) GivePlayerWeapon(playerid, plyWeapons, plyAmmo);
}
return 1;
}
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
Samo Preveo Imena orzuja i 3 komande preveo i to je znaci tvoj😕
a da ti cirtas
.ılllı.SteXi.ılllı. wrote on April 28, 2011, 11:41 am:
Napravio:Gimini
Editovao:Stexi
Komande:
/bacioruzije ili /boruzije i /podignioruzije ili /poruzije
Uzeo sam FS od nxidze taj je bio na engl pa sam preveo ..
Ne trebaju slike svi znate sta znaci 🙂
Download:
http://www.2shared.com/file/fgrhOl_5/FSDropGun.html
Editovao:Stexi
Komande:
/bacioruzije ili /boruzije i /podignioruzije ili /poruzije
Uzeo sam FS od nxidze taj je bio na engl pa sam preveo ..
Ne trebaju slike svi znate sta znaci 🙂
Download:
http://www.2shared.com/file/fgrhOl_5/FSDropGun.html
28. Apr. 2011.
.ılllı.SteXi.ılllı. wrote on April 28, 2011, 12:06 pm:
Ja sam je EDIT lepo pise 🙄
Izvinjavam se..editovao sma prvi post...
29. Apr. 2011.
.ılllı.SteXi.ılllı. wrote on April 28, 2011, 12:06 pm:
Izvinjavam se..editovao sma prvi post...
Stavi link u svoj prvi post odakle je preuzeta filterskripta.
29. Apr. 2011.
Oj jbt moram vas uÄiti i koji link da stavite,to uopÅ¡te nije orginalni već ovaj http://forum.sa-mp.com/showthread.php?t=151633
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
