Szerző Téma: Munka FS  (Megtekintve 2554 alkalommal)

Munka FS
« Dátum: 2013. június 30. - 12:40:03 »
0 Show voters
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.
« Utoljára szerkesztve: 2013. június 30. - 13:25:32 írta kirahachi »

Nem elérhető EnterR

  • Globális moderátor
  • 4223
  • dawg
    • Profil megtekintése
Munka FS
« Válasz #1 Dátum: 2013. június 30. - 12:44:10 »
0 Show voters
Most ezt te készítetted?
Vagy áthoztad HIV fórumról?
Valamennyit illene róla írni...

Munka FS
« Válasz #2 Dátum: 2013. június 30. - 12:46:08 »
0 Show voters
Én írtam teljesen egészében sehonnan sem hoztam.

Nem elérhető SnooP

  • 1798
  • SnooP
    • Profil megtekintése
Munka FS
« Válasz #3 Dátum: 2013. június 30. - 12:54:47 »
+1 Show voters
Nos a véleményem, hogy teljesen felesleges semmi nagyon hasznos nincs benne, ilyet Set-GetPlayerTeam-el is össze lehet dobbni 15 perc alatt.
A másik dolog ami szerintem hülyeség benne, hogy ha filterscript akkor miért OnGameModeInt-el töltöd be az objecteket, hisz az ember egy filterscript betöltése alatt nem kutyulná a GameModeját is meg, ezért a CreateObjecteket rakd az OnFilterScriptInit alá és az OnGameModeInit-et meg töröld véleményem szerint.
De mivel látom nemrég kezdted elsõnek a határvonalat súrolja (bár igaz én a munkám és mások munkáját illetõen elég kritikus vagyok), annyit becsülök benned, hogy nem egy AFK Rendszert írtál és legalább szép a felépítése. De szerintem inkább tanuld többet a \"nyelvet\" és valami komolyabbal rukkolj elõ legközelebb ;)

Munka FS
« Válasz #4 Dátum: 2013. június 30. - 12:59:42 »
0 Show voters
Ja hát elég kezdõ FS , VIP rendszert akarok csinálni talán az jobb lessz de a dinivel még nem vagyok teljesen jóban xD
az ongamemodainit pedig javítva :D

Nem elérhető SnooP

  • 1798
  • SnooP
    • Profil megtekintése
Munka FS
« Válasz #5 Dátum: 2013. június 30. - 13:12:26 »
0 Show voters
Kétszer van az OnFilterScriptInit :) A másodikban lévõ timereket másold az elsõbe :\'D
E: És mondjuk szerintem szebb a felépítése, ha a parancsokat az OnFilterScriptExit fölé másolod és a forwardokat meg valahova a változókhoz, jobb az átlátása az egésznek véleményem szerint, bár ez szubijektív.
« Utoljára szerkesztve: 2013. június 30. - 13:16:15 írta SnooP »

Munka FS
« Válasz #6 Dátum: 2013. június 30. - 13:25:54 »
0 Show voters
Javitva ismét  :laugh:

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Munka FS
« Válasz #7 Dátum: 2013. június 30. - 18:28:06 »
0 Show voters
ha már télleg munka fs akkor már dolgozzon is valamit az ürge ha már munkába állt szerintem.

Munka FS
« Válasz #8 Dátum: 2013. július 01. - 15:51:23 »
0 Show voters
majd talán csinálok  :shurg:

Nem elérhető gbr333

  • 670
    • Profil megtekintése
Munka FS
« Válasz #9 Dátum: 2013. július 01. - 18:54:11 »
0 Show voters
Yakuza? Az jó munka lehet...

Munka FS
« Válasz #10 Dátum: 2013. július 02. - 11:54:50 »
0 Show voters
Az :D

Munka FS
« Válasz #11 Dátum: 2013. július 02. - 11:55:55 »
0 Show voters
Az tényleg jó meló!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal