Hello beszeretném mutatni a fegyver scriptemet de pénzért lehet megvenni a fegyvereket
minden fegyverbenne van asszem nem biztos
amit lehet venni:
m4
desert
ak
rifle
sniper
rakétavetõ
heat seaker rpg
minigun
teargas
grenade
combat shotgun
sawnoff
shotgun
tec9
uzi
mp5
elet
pajzs
silenced
és most jöjjön a script
#include <a_samp>
#include <zcmd>
#define COLOR_LIME 0x99FF00AA
#define COLOR_ULTRARED 0xFF0606FF
CMD:fegyverarak(playerid)
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,\".::Fegyok árai::.\",\"9mmsilenced:900$|deserteagle:1500$|m4:9000$|ak47:9000$\\nPajzs:2000$|Élet:2500$|MP5:6000$\\nMicrouzi:5500$|tec9:6500$\\nshotgun:3000$|sawnoff:3500$|combat:3800$\\nSniper:25000$|rifle:15000$\\nGránát:50000$|Teargas:50500$\\nminigun:15000000$|hsrpg:200000000$|rakétavetõ:250000000$\",\"OK\",\"\");
return 1;
}
CMD:m4( playerid ) {
if( GetPlayerMoney( playerid ) < 9000 ) {
SendClientMessage( playerid, COLOR_ULTRARED, \"Nincs elég pénzed rá.\" );
} else {
GivePlayerWeapon( playerid, 31, 500 );
GivePlayerMoney( playerid, - 9000 );
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 M4-et\");
}
return 1;
}
CMD:9mmsilenced( playerid ){
if( GetPlayerMoney(playerid) < 900) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,23,500);
GivePlayerMoney(playerid,-900);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 9mm silenced-et\");
}
return 1;
}
CMD:ak47( playerid ){
if( GetPlayerMoney(playerid) < 9000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,30,500);
GivePlayerMoney(playerid,-9000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 AK47-et\");
}
return 1;
}
CMD:deserteagle( playerid ){
if( GetPlayerMoney(playerid) < 1500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,24,500);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 deserteagl-et\");
}
return 1;
}
CMD:pajzs( playerid ){
if( GetPlayerMoney(playerid) < 2000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen felvettél 1 armourt\");
}
return 1;
}
CMD:elet( playerid ){
if( GetPlayerMoney(playerid) < 2500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-2500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél életet\");
}
return 1;
}
CMD:mp5( playerid ){
if( GetPlayerMoney(playerid) < 6000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,29,500);
GivePlayerMoney(playerid,-6000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 mp5-öt\");
}
return 1;
}
CMD:microuzi( playerid ){
if( GetPlayerMoney(playerid) < 5500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,28,500);
GivePlayerMoney(playerid,-5500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 micro uzit\");
}
return 1;
}
CMD:tec9( playerid ){
if( GetPlayerMoney(playerid) < 6500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,32,500);
GivePlayerMoney(playerid,-6500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 tec9-et\");
}
return 1;
}
CMD:shotgun( playerid ){
if( GetPlayerMoney(playerid) < 3000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,25,500);
GivePlayerMoney(playerid,-3000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 shotgunt\");
}
return 1;
}
CMD:sawnoff( playerid ){
if( GetPlayerMoney(playerid) < 3500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,26,500);
GivePlayerMoney(playerid,-3500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 sawnoffot\");
}
return 1;
}
CMD:combat( playerid ){
if( GetPlayerMoney(playerid) < 3800) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,27,500);
GivePlayerMoney(playerid,-3800);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 tec9-et\");
}
return 1;
}
CMD:grenade( playerid ){
if( GetPlayerMoney(playerid) < 50000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,16,500);
GivePlayerMoney(playerid,-50000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 gránátot\");
}
return 1;
}
CMD:teargas( playerid ){
if( GetPlayerMoney(playerid) < 50500) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,17,500);
GivePlayerMoney(playerid,-50500);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 tear gázt\");
}
return 1;
}
CMD:minigun( playerid ){
if( GetPlayerMoney(playerid) < 150000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,38,500);
GivePlayerMoney(playerid,-150000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 minigunt\");
}
return 1;
}
CMD:hsraketa( playerid ){
if( GetPlayerMoney(playerid) < 200000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,36,20);
GivePlayerMoney(playerid,-200000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 hs rocket launchert\");
}
return 1;
}
CMD:raketaveto( playerid ){
if( GetPlayerMoney(playerid) < 200000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,35,20);
GivePlayerMoney(playerid,-200000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 rakéta vetõt\");
}
return 1;
}
CMD:sniper( playerid ){
if( GetPlayerMoney(playerid) < 25000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,34,20);
GivePlayerMoney(playerid,-25000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 snipert\");
}
return 1;
}
CMD:rifle( playerid ){
if( GetPlayerMoney(playerid) < 15000) {
SendClientMessage(playerid,COLOR_ULTRARED,\"Nincs elég pénzed\");
} else {
GivePlayerWeapon(playerid,34,200);
GivePlayerMoney(playerid,-15000);
SendClientMessage(playerid,COLOR_LIME,\"Sikeresen vettél 1 falusi riflet\");
}
return 1;
}