Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Témák - kirahachi

Oldalak: [1]
1
SA-MP: Szerverfejlesztés / Munka FS
« Dátum: 2013. június 30. - 12:40:03 »
Munka FS:
 
// ++++++SAJT++++++
#include <a_samp>
#include <zcmd>
new gTeam[MAX_PLAYERS];
#define TEAM_JAKUZA 0
#define TEAM_FARMER 2
#define TEAM_BERGYILKOS 3
#define TEAM_PROSTI 4
#define TEAM_CIVIL 1
#define ROZSASZIN #EE82EE
public OnFilterScriptInit()
{
AddStaticVehicleEx(600,-369.1992200,-1057.1992200,59.1000000,90.0000000,32,234,15); //Picador
AddStaticVehicleEx(600,-369.3999900,-1061.5000000,59.1000000,88.0000000,18,203,15); //Picador
AddStaticVehicleEx(532,-346.7000100,-1053.8000500,60.4000000,90.0000000,7,92,15); //Combine
AddStaticVehicleEx(533,2094.0000000,2066.1999500,10.6000000,270.0000000,242,102,15); //Feltzer
AddStaticVehicleEx(533,2094.0000000,2063.8000500,10.6000000,270.0000000,242,102,15); //Feltzer
CreateObject(12957,-358.7000100,-1035.5000000,59.3000000,0.0000000,0.0000000,0.0000000); //object(sw_pickupwreck01) (1)
CreateObject(1224,-354.6000100,-1042.3000500,59.0000000,0.0000000,0.0000000,0.0000000); //object(woodenbox) (1)
CreateObject(1224,-354.1000100,-1044.1999500,59.0000000,0.0000000,0.0000000,0.0000000); //object(woodenbox) (2)
CreateObject(1437,-353.3999900,-1039.8000500,58.4000000,0.0000000,0.0000000,272.0000000); //object(dyn_ladder_2) (1)
CreateObject(1477,-365.7000100,-1037.5999800,59.9000000,0.0000000,0.0000000,0.0000000); //object(dyn_porch_4b) (1)
CreateObject(1477,-368.5996100,-1037.5996100,59.9000000,0.0000000,0.0000000,0.0000000); //object(dyn_porch_4b) (3)
CreateObject(1477,-367.1992200,-1037.5996100,59.9000000,0.0000000,0.0000000,0.0000000); //object(dyn_porch_4b) (4)
CreateObject(1477,-364.2999900,-1037.5999800,59.9000000,0.0000000,0.0000000,0.0000000); //object(dyn_porch_4b) (5)
CreateObject(870,-365.0000000,-1037.6999500,58.7000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers2wee) (1)
CreateObject(870,-365.0000000,-1037.6992200,58.7000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers2wee) (2)
CreateObject(870,-367.2000100,-1037.6999500,58.7000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers2wee) (3)
CreateObject(870,-368.5000000,-1038.0000000,58.6000000,0.0000000,0.0000000,0.0000000); //object(veg_pflowers2wee) (4)
CreateObject(805,-364.2999900,-1029.1999500,59.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (1)
CreateObject(805,-364.2998000,-1029.1992200,59.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (2)
CreateObject(805,-368.6000100,-1029.9000200,59.5000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (3)
CreateObject(805,-360.6000100,-1029.3000500,59.6000000,0.0000000,0.0000000,0.0000000); //object(genveg_bush11) (4)
CreateObject(736,-353.3999900,-1059.1999500,69.5000000,0.0000000,0.0000000,0.0000000); //object(ceasertree01_lvs) (1)
CreateObject(736,-354.3994100,-1049.1992200,69.5000000,0.0000000,0.0000000,0.0000000); //object(ceasertree01_lvs) (2)
CreateObject(2096,-353.5000000,-1046.9000200,58.4000000,0.0000000,0.0000000,270.0000000); //object(cj_rockingchair) (1)
CreateObject(2096,-353.5000000,-1046.0996100,58.4000000,0.0000000,0.0000000,270.0000000); //object(cj_rockingchair) (2)
CreateObject(1516,-365.7000100,-1045.0999800,58.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_table_03) (1)
CreateObject(2309,-367.0000000,-1045.3000500,58.4000000,0.0000000,2.0000000,266.0000000); //object(med_office_chair2) (1)
CreateObject(2309,-365.7999900,-1046.4000200,58.4000000,0.0000000,6.0000000,358.9950000); //object(med_office_chair2) (2)
CreateObject(2894,-365.7000100,-1045.1999500,58.4000000,0.0000000,0.0000000,0.0000000); //object(kmb_rhymesbook) (1)
CreateObject(1757,-375.3999900,-1043.6999500,58.2000000,0.0000000,0.0000000,6.0000000); //object(low_couch_5) (1)
CreateObject(941,2095.8000500,2069.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (1)
CreateObject(941,2090.8000500,2069.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (2)
CreateObject(941,2093.3000500,2069.5000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (3)
CreateObject(941,2093.6001000,2078.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (4)
CreateObject(941,2091.1001000,2078.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (5)
CreateObject(941,2096.1001000,2078.0000000,10.3000000,0.0000000,0.0000000,0.0000000); //object(cj_df_worktop_3) (6)
CreateObject(1337,2085.3000500,2075.8999000,10.7000000,0.0000000,0.0000000,0.0000000); //object(binnt07_la) (1)
CreateObject(14446,2091.3999000,2083.3999000,10.4000000,0.0000000,0.0000000,90.0000000); //object(smokes_bed) (1)
CreateObject(14446,2091.3999000,2087.1001000,10.4000000,0.0000000,0.0000000,90.0000000); //object(smokes_bed) (2)
CreateObject(339,2621.5937500,1831.8544900,12.0813900,0.0000000,0.0000000,0.0000000); //object(1)
CreateObject(341,2622.0000000,1833.8000500,10.8000000,0.0000000,0.0000000,0.0000000); //object(2)
CreateObject(2117,2616.3000500,1832.8000500,9.8000000,0.0000000,0.0000000,0.0000000); //object(swank_dinning_5) (1)
CreateObject(2117,2614.1999500,1832.8000500,9.8000000,0.0000000,0.0000000,0.0000000); //object(swank_dinning_5) (2)
CreateObject(2117,2612.0000000,1832.8000500,9.8000000,0.0000000,0.0000000,0.0000000); //object(swank_dinning_5) (3)
CreateObject(2985,2614.8000500,1832.8000500,10.6000000,0.0000000,0.0000000,267.9950000); //object(minigun_base) (2)
CreateObject(2985,2612.5000000,1832.8000500,10.6000000,0.0000000,0.0000000,267.9950000); //object(minigun_base) (3)
CreateObject(2985,2616.6992200,1832.7998000,10.6000000,0.0000000,0.0000000,267.9950000); //object(minigun_base) (4)
CreateObject(16093,2614.1001000,1786.1999500,14.1000000,0.0000000,0.0000000,177.5000000); //object(a51_gatecontrol) (1)
CreateObject(3064,2588.1855500,1701.5332000,18.4432500,0.0000000,0.0000000,0.0000000); //object(break_wall_1a) (1)
CreateObject(3528,2614.6001000,1790.6999500,12.7000000,0.0000000,0.0000000,80.0000000); //object(vgsedragon) (1)
CreateObject(2908,2488.6001000,1528.0000000,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (1)
CreateObject(2907,2488.1999500,1526.9000200,10.0000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadtorso) (1)
CreateObject(2905,2489.1001000,1526.0000000,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadleg) (1)
CreateObject(2906,2487.1999500,1526.3000500,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadarm) (1)
CreateObject(2906,2488.5000000,1525.3000500,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadarm) (2)
CreateObject(2905,2486.1999500,1525.9000200,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadleg) (2)
CreateObject(1441,2489.0000000,1523.9000200,10.5000000,0.0000000,0.0000000,0.0000000); //object(dyn_box_pile_4) (1)
CreateObject(1450,2485.0000000,1524.0999800,10.4000000,0.0000000,0.0000000,108.0000000); //object(dyn_crate_3) (1)
CreateObject(1355,2492.8999000,1522.3000500,10.0000000,0.0000000,0.0000000,0.0000000); //object(cj_fruitcrate1) (1)
CreateObject(2908,2493.1001000,1521.3000500,9.9000000,0.0000000,0.0000000,0.0000000); //object(kmb_deadhead) (2)
CreateObject(1436,2497.6999500,1517.1999500,11.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_scaffold_2) (1)
CreateObject(1436,2494.3999000,1517.1999500,11.4000000,0.0000000,0.0000000,0.0000000); //object(dyn_scaffold_2) (2)
CreateObject(14877,2536.6999500,1472.9000200,-24.0000000,0.0000000,0.0000000,260.0000000); //object(michelle-stairs) (1)
CreateObject(14877,2620.5000000,1790.5999800,11.9000000,0.0000000,0.0000000,268.0000000); //object(michelle-stairs) (2)
CreateObject(1820,2497.3999000,1521.6999500,9.8000000,0.0000000,0.0000000,0.0000000); //object(coffee_low_4) (1)
CreateObject(1714,2499.1999500,1523.1999500,9.8000000,0.0000000,0.0000000,312.0000000); //object(kb_swivelchair1) (1)
CreateObject(1714,2497.8000500,1523.5999800,9.8000000,0.0000000,0.0000000,1.9950000); //object(kb_swivelchair1) (2)
CreateObject(1714,2496.8999000,1522.5000000,9.8000000,0.0000000,0.0000000,75.9940000); //object(kb_swivelchair1) (3)
CreateObject(1714,2498.1001000,1521.3000500,9.8000000,0.0000000,0.0000000,175.9920000); //object(kb_swivelchair1) (4)
SetTimer(\"ProstiMoney\", 540000, true);
SetTimer(\"FarmerMoney\", 1200000, true);
SetTimer(\"HitmanMoney\", 300000, true);
SetTimer(\"JakuzaMoney\", 180000, true);
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFFFF00AA, \"Elérhetõ munkák: /helpjobs\" );
return 1;
}
public OnPlayerSpawn(playerid)
{
    gTeam[playerid] = TEAM_CIVIL;
    return 1;
}
forward FarmerMoney();
public FarmerMoney() {
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue;
if(gTeam == TEAM_FARMER) {
   GivePlayerMoney(i, 1000000);
   SendClientMessage(i, 0xFFFF00AA, \"[[!!! MEGJÖTT A FIZETÉS +1000000$ !!!]]\");
}
}
return 1;
}
forward ProstiMoney();
public ProstiMoney() {
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue;
if(gTeam == TEAM_PROSTI) {
   GivePlayerMoney(i, 250000);
   SendClientMessage(i, 0xFFFF00AA, \"[[!!! MEGJÖTT A FIZETÉS +250000$ !!!]]\");
}
}
return 1;
}
forward HitmanMoney();
public HitmanMoney() {
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue;
if(gTeam == TEAM_BERGYILKOS) {
   GivePlayerMoney(i, 55000);
   SendClientMessage(i, 0xFFFF00AA, \"[[!!! MEGJÖTT A FIZETÉS +55000$ !!!]]\");
}
}
return 1;
}
forward JakuzaMoney();
public JakuzaMoney() {
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue;
if(gTeam == TEAM_JAKUZA) {
   GivePlayerMoney(i, 50000);
   SendClientMessage(i, 0xFFFF00AA, \"[[!!! MEGJÖTT A FIZETÉS +50000$ !!!]]\");
}
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:prosti(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
gTeam[playerid] = TEAM_PROSTI;
SendClientMessage (playerid, 0xFF66FFAA, \"Prosti lettél, a fizetésed 9 percenként érkezik ami összesen +250000$, ha ki akarsz lépni a munkából: /qjob \" );
SetPlayerPos(playerid, 2092.2058,2075.6121,10.8203);
SetPlayerSkin(playerid, 63);
GivePlayerWeapon(playerid, 10,1250);
GivePlayerWeapon(playerid, 22,500);
}else{
SendClientMessage(playerid, 0xAA3333AA, \"Neked már van munkád, ha kiakarsz lépni, /qjob\" );
}
return 1;
}
CMD:farmer(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
gTeam[playerid] = TEAM_FARMER;
SendClientMessage (playerid, 0x99FFFFAA, \"Farmer lettél, a fizetésed 20 percenként érkezik ami összesen +1000000$, ha ki akarsz lépni a munkából: /qjob  \" );
SetPlayerPos(playerid, -365.8598,-1053.5157,59.3026);
SetPlayerSkin(playerid, 158);
GivePlayerWeapon(playerid, 25,500);
GivePlayerWeapon(playerid, 6,1);
}else{
SendClientMessage(playerid, 0xAA3333AA, \"Neked már van munkád, ha kiakarsz lépni, /qjob\" );
}
return 1;
}
CMD:hitman(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
gTeam[playerid] = TEAM_BERGYILKOS;
SendClientMessage (playerid,  0x9900FFAA, \"Bérgyilkos lettél, a fizetésed 5 percenként érkezik ami összesen +55000$, ha ki akarsz lépni a munkából: /qjob \" );
SetPlayerPos(playerid, 2483.7244,1529.2572,10.9032);
SetPlayerSkin(playerid, 165);
GivePlayerWeapon(playerid, 23,500);
GivePlayerWeapon(playerid, 29,500);
GivePlayerWeapon(playerid, 31,1250);
GivePlayerWeapon(playerid, 34,1250);
GivePlayerWeapon(playerid, 4,1);
}else{
SendClientMessage(playerid, 0xAA3333AA, \"Neked már van munkád, ha kiakarsz lépni, /qjob\" );
}
return 1;
}
CMD:jakuza(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
gTeam[playerid] = TEAM_JAKUZA;
SendClientMessage (playerid,  0x99FF00AA, \"Jakuza lettél, a fizetésed 3 percenként érkezik ami összesen +50000$, ha ki akarsz lépni a munkából: /qjob \" );
SetPlayerPos(playerid, 2620.8157,1824.3083,11.0234);
SetPlayerSkin(playerid, 203);
GivePlayerWeapon(playerid, 8,500);
GivePlayerWeapon(playerid, 22,500);
GivePlayerWeapon(playerid, 27,500);
}else{
SendClientMessage(playerid, 0xAA3333AA, \"Neked már van munkád, ha kiakarsz lépni, /qjob\" );
}
return 1;
}
CMD:qjob(playerid, params[])
{
gTeam[playerid] = TEAM_CIVIL;
SendClientMessage(playerid, 0xAA3333AA, \"Munkanélküli lettél!\" );
ResetPlayerWeapons(playerid);
return 1;
}
CMD:helpjobs(playerid, params[])
{
SendClientMessage(playerid,  0x0000FFAA, \"++++++++[ELÉRHETÕ MUNKÁK]+++++++\" );
SendClientMessage(playerid, 0x99FFFFAA, \"++++++[/FARMER]++++++\" );
SendClientMessage(playerid, 0xFF66FFAA, \"+++++[/PROSTI]+++++\" );
SendClientMessage(playerid, 0x9900FFAA, \"++++[/HITMAN]++++\" );
SendClientMessage(playerid, 0x99FF00AA, \"+++[/JAKUZA]+++\" );
return 1;
}

 
Parancsok:
/helpjobs - Munkákat írja ki
/farmer - Farmer munkát vállalsz
/jakuza - Jakuza munkát vállalsz
/prosti - Prosti munkát vállalsz
/hitman - Bérgyilkos munkát vállalsz
A Fs -t teljesen én írtam.

2
Segítségkérés / ViP
« Dátum: 2013. június 24. - 12:22:29 »
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dubd>
#include <dutils>
#include <sscanf2>
new gTeam[MAX_PLAYERS];
#define TEAM_VIP 1
#define TEAM_CIVIL 2
public OnFilterScriptInit()
{
   return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:vip(playerid, params[])
{
dini_Create(\"ViPe.ini\");
new VIP[MAX_PLAYERS];
VIP[playerid] = dini_IntSet(\"ViPe.ini\", \"VIP\", 0);
if(VIP[playerid] == 1)
{
gTeam[playerid] = TEAM_VIP;
}
return 1;
}
CMD:vipcmd(playerid, params[])
{
if(gTeam[playerid] == TEAM_VIP)
{
SendClientMessage(playerid, -1, \"ViP :)\" );
} else {
SendClientMessage(playerid, -1, \"Nem vagy VIP\" );
}
return 1;
}

 
Az a baj hogyha beírod hogy /vip -akkor átteszi õt a team_vip csapatba és ha le és felmegy el is menti de az a baj hogy nem csak az adott játékosnak menti el a VIP ját ha beírja hanem az egésznek aki másmás nevekkel feljön mit kell csinálni h ne így legyen?

3
Segítségkérés / Nem müködõ parancs..
« Dátum: 2013. június 11. - 13:30:52 »
#include a_samp
#include zcmd
new gTeam[MAX_PLAYERS];
#define TEAM_NEMET 5
#define TEAM_CIVIL 6
public OnFilterScriptInit() {
SetTimer(\"JobsMoney\", 10*60000, true);
return 1;
}
forward JobsMoney();
public JobsMoney() {
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue; // átugorja a MAX_PLAYERS közül azokat akik nem online
if(gTeam == TEAM_NEMET) { // Mindenki kap pénzt AKI a TEAM_NEMET csapatba van
   GivePlayerMoney(i, 5000);
   SendClientMessage(i, -1, \"Megjött a fizetés! +5000$\");
}
}
return 1;
}
CMD:nemet(playerid) {
if(gTeam[playerid] == TEAM_CIVIL) {
gTeam[playerid] = TEAM_NEMET;
SendClientMessage (playerid, -1, \"Német lettél testvérem!ha ki akarsz lépni a származásból /exitsz*rmazas \" );
SetPlayerPos(playerid, 2482.1138,1526.6195,11.4981);
SetPlayerSkin(playerid, 186);
GivePlayerWeapon(playerid, 23,1250);
GivePlayerWeapon(playerid, 30,1250);
}else{
SendClientMessage(playerid, -1, \"Neked már van származásod!ha ki akarsz lépni a származásból /exitsz*rmazas\" );
}
return 1;
}
Naplózva

 
A \"nemet\" parancs eggyáltalán nem müxik SERVER:Unkown command mibaja van??

Dupla hozzászólás automatikusan összefûzve. ( 2013. június 11. - 13:41:21 )

Már müxik csak nem a filterscripthez raktma hanem a pluginzhoz  :mistrust:

4
Segítségkérés / SetTimer help
« Dátum: 2013. június 10. - 13:33:36 »
CMD:nemet(playerid, params[])
{
if(gTeam[playerid] == TEAM_CIVIL)
{
gTeam[playerid] = TEAM_NEMET;
SendClientMessage (playerid, ZÖLD, \"Német lettél testvérem!ha ki akarsz lépni a származásból /exitszarmazas \" );
SetPlayerPos (playerid, 2482.1138,1526.6195,11.4981);
SetPlayerSkin (playerid, 186);
GivePlayerWeapon (playerid, 23,1250);
GivePlayerWeapon (playerid, 30,1250);
SetTimer(\"GivePlayerMoney\", 1000, true);
GivePlayerMoney(playerid, 25000);
SetTimer(\"GivePlayerMoney\", 1000, true);
}
else
{
SendClientMessage (playerid, PIROS, \"Neked már van származásod!ha ki akarsz lépni a származásból /exitszarmazas\" );
}
return 1;
}

 
Hogyan kell úgy beállitani, hogy a pénzt ne egybõl adja a playernek mikor belép a TEAM_NEMET -be hanem 10 perc után?

5
Segítségkérés / Rang, Adminszint , Viptagság lementése.
« Dátum: 2013. június 09. - 15:11:41 »
Hali.
Hogyan kell lementeni egy játékost VIP tagságát bandarangját vagy adminszintjét dini -vel?

6
Segítségkérés / gTeam segitség!
« Dátum: 2013. június 09. - 12:38:34 »
#include <a_samp>
#include <zcmd>
new gTeam[MAX_PLAYERS];
#define TEAM_OROSZ 1
#define FILTERSCRIPT
#define PIROS 0xff0000AA
#define FEKETE 0x000000AA
#define ZÖLD 0x00ff00AA
#if !defined INFINITY
#define INFINITY (Float:0x7F800000)
#endif
public OnPlayerSpawn(playerid)
{
    SetPlayerTeam(playerid, TEAM_OROSZ);
    return 1;
}
CMD:ruszki(playerid, params[])
{
if(gTeam[playerid] == TEAM_OROSZ)
{
GivePlayerWeapon (playerid, 24,500);
GivePlayerWeapon (playerid, 38,900);
SetPlayerColor (playerid, 0xff0000AA);
SendClientMessage (playerid, PIROS, \"Ruszki csomag hozzáadva! \" );
}
else
{
SendClientMessage (playerid, PIROS, \"Nem vagy orosz! \" );
}
return 1;
}

 
Evvel az a baj hogy le spawnolok és nem hadja a parancsot használni.

7
Segítségkérés / Parancs használat
« Dátum: 2013. június 01. - 13:58:27 »
Hali, hogyan kell úgy megcsinálni eggy parancsot hogy pl: admin,vip,bandatag ilyesmik tudják csak használni?

Oldalak: [1]
SimplePortal 2.3.7 © 2008-2024, SimplePortal