#include <a_samp>#include <streamer>#include <zcmd>#define COLOR_GREEN 0x33FF33AA#define COLOR_RED 0xFF0000AA#define COLOR_BLUE 0x33CCFFAA#define COLOR_ORANGE 0xFF9900AApublic OnGameModeInit(){ CreateDynamicObject(2942, 2023.3864,997.9861,10.8203,89.5213,0,0,0,0,0,0); CreateDynamicObject(2942, 2085.6697,2080.3186,11.0579,89.4811,0,0,0,0,0,0); CreateDynamicObject(2942, 2236.6499,2396.3484,10.8203,263.8403,0,0,0,0,0,0); CreateDynamicObject(2942, 2134.4465,2380.2153,10.8203,355.9611,0,0,0,0,0,0); return 1;}CMD:rabol(playerid, params[]) { if(GetPVarInt(playerid,\"rabol\")==1) { SendClientMessage(playerid,COLOR_RED,\"Most raboltál! 5 perc múlva újra rabolhatsz\"); } if(GetPVarInt(playerid,\"rabol\")==0) { if(IsPlayerInRangeOfPoint(playerid,1.0,2023.3864,997.9861,10.8203) || IsPlayerInRangeOfPoint(playerid,1.0, 2085.6697,2080.3186,11.0579) || IsPlayerInRangeOfPoint(playerid,1.0, 2236.6499,2396.3484,10.8203) || IsPlayerInRangeOfPoint(playerid,1.0, 2134.4465,2380.2153,10.8203))//Értelemszerûen tudod bõvíteni! { SendClientMessage(playerid,COLOR_RED,\"Beleütöttél egyet az ATM-be, és kiesett a sok pénz! Gyorsan szedd fel a lóvét!!\"); TogglePlayerControllable(playerid,0); SetPlayerWantedLevel(playerid,4); SetPVarInt(playerid,\"rabol\",1); SendClientMessageToAll(COLOR_RED,\"[RIASZTÁS]: Kirabolták az ATM-et!\"); SetTimerEx(\"rabolas\",15000,0,\"i\",playerid); } else { SendClientMessage(playerid,COLOR_GREEN,\"Nemvagy ATM közelébe! Mennyé közelebb! :\'S\"); } } return 1;}forward rabolas(playerid);public rabolas(playerid){ new rcash =(random(50000-10000)+10000); TogglePlayerControllable(playerid,1); GivePlayerMoney(playerid, rcash); SendClientMessage(playerid,COLOR_ORANGE,\"Kész vagy! Gyorsan fuss el, miellõtt ideérnek a zsaruk!\"); SetTimerEx(\"rabolasido\",300000,0,\"i\",playerid);}forward rabolasido(playerid);public rabolasido(playerid){ SendClientMessage(playerid,COLOR_GREEN,\"Letelt az idõd! Mostmár rabolhatsz újra\"); SetPVarInt(playerid,\"rabol\",0); SetPlayerWantedLevel(playerid,0); return 1;}
public OnFilterScriptInit(){CreateDynamicObject(2942, 2023.3864,997.9861,10.8203,89.5213,0,0,0,0,0,0);CreateDynamicObject(2942, 2085.6697,2080.3186,11.0579,89.4811,0,0,0,0,0,0);CreateDynamicObject(2942, 2236.6499,2396.3484,10.8203,263.8403,0,0,0,0,0,0);CreateDynamicObject(2942, 2134.4465,2380.2153,10.8203,355.9611,0,0,0,0,0,0);return 1;}
public OnFilterScriptInit(){CreateDynamicObject(2942, 2023.3864,997.9861,10.8203,89.5213,0,0);CreateDynamicObject(2942, 2085.6697,2080.3186,11.0579,89.4811,0,0);CreateDynamicObject(2942, 2236.6499,2396.3484,10.8203,263.8403,0,0);CreateDynamicObject(2942, 2134.4465,2380.2153,10.8203,355.9611,0,0);return 1;}