AddPlayerClass(293,2428.5974,-139.4831,31.4704,318.3638,0,0,0,0,0,0);AddPlayerClass(293,2403.0400,-139.5483,28.8782,98.7384,0,0,0,0,0,0);AddPlayerClass(293,2431.5042,-167.3200,27.6910,232.2198,0,0,0,0,0,0);AddPlayerClass(293,2435.1577,-152.6501,31.3709,334.3674,0,0,0,0,0,0);
#include <a_samp>#include <zcmd>#define Munka_Favago 1CMD:favago(playerid, params[]){SetPVarInt(playerid, \"Favago\", Munka_Favago);SendClientMessage(playerid, 0x33CCFFAA, \"Favágó lettél!\"); return 1;}CMD:fakivagas(playerid, params[]){ if(IsPlayerInRangeOfPoint(playerid, 2.0, 2428.5974,-139.4831,31.4704) || IsPlayerInRangeOfPoint(playerid, 2.0, 2403.0400,-139.5483,28.8782) || IsPlayerInRangeOfPoint(playerid, 2.0, 2431.5042,-167.3200,27.6910) || IsPlayerInRangeOfPoint(playerid, 2.0, 2435.1577,-152.6501,31.3709)) { if(GetPVarInt(playerid, \"Favago\") == Munka_Favago) { TogglePlayerControllable(playerid, 0); GivePlayerMoney(playerid, -100); SendClientMessage(playerid, 0xFF0000AA, \"Elkezdted kivágni a fát, és a fejsze élezésért $100-t fizettél!\"); SetTimerEx(\"favagas\",25000,0,\"i\",playerid); } } return 1;}forward favagas(playerid);public favagas(playerid){ TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, 0x33CCFFAA, \"Befejezted a favágást! Kaptál $745-t, és 10 pontot!\"); GivePlayerMoney(playerid, 745); SetPlayerScore(playerid,GetPlayerScore(playerid)+10); return 1;}
#include <a_samp>#include <zcmd>#define munka 100#define Munka_Favago 1CMD:favago(playerid, params[]){ ShowPlayerDialog(playerid, munka, DIALOG_STYLE_LIST, \"Válaszd ki, hogy elfogadod-e a munkát!\",\"Elfogadom\",\"Nem Fogadom el\",\" Választ\", \"Mégse\"); return 1;}CMD:fakivagas(playerid, params[]){ if(IsPlayerInRangeOfPoint(playerid, 2.0, 2428.5974,-139.4831,31.4704) || IsPlayerInRangeOfPoint(playerid, 2.0, 2403.0400,-139.5483,28.8782) || IsPlayerInRangeOfPoint(playerid, 2.0, 2431.5042,-167.3200,27.6910) || IsPlayerInRangeOfPoint(playerid, 2.0, 2435.1577,-152.6501,31.3709)) { if(GetPVarInt(playerid, \"Favago\") == Munka_Favago) { TogglePlayerControllable(playerid, 0); GivePlayerMoney(playerid, -100); SendClientMessage(playerid, 0xFF0000AA, \"Elkezdted kivágni a fát, és a fejsze élezésért $100-t fizettél!\"); SetTimerEx(\"favagas\",25000,0,\"i\",playerid); } } return 1;}forward favagas(playerid);public favagas(playerid){ TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, 0x33CCFFAA, \"Befejezted a favágást! Kaptál $745-t, és 10 pontot!\"); GivePlayerMoney(playerid, 745); SetPlayerScore(playerid,GetPlayerScore(playerid)+10); return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == munka) { if(response) { if(listitem == 0) { SetPVarInt(playerid, \"Favago\", Munka_Favago); SendClientMessage(playerid, 0x33CCFFAA, \"Elfogadtad a munkát Favágó lettél!\"); } if(listitem == 1) { SendClientMessage(playerid, 0x33CCFFAA, \"Nem fogadtad el a munkát! Nem lettél favágó! :\'(\"); } } } return 1;}