new fegyver; fegyver = CreatePickup(1239, X,Y,Z, -1); //írd átt a kordinátát hova mennyen bele a játékos hogy felvegye a fegyvert!public OnPlayerPickUpPickup(playerid, pickupid){ if(pickupid == fegyver) { GivePlayerWeapon(playerid, FEGYVERID, TÖLTÉNY); return 1; } return 1;}
\" post=\"265449\" timestamp=\"1335773172\"]csak akkor kell hozzá timer [/quote]OnPlayerUpdate alá berakod, és kész.
native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITY, Float:maxz = FLOAT_INFINITY, maxpoints = sizeof points, worldid = -1, interiorid = -1, playerid = -1);native DestroyDynamicArea(areaid);native IsValidDynamicArea(areaid);native TogglePlayerDynamicArea(playerid, areaid, toggle);native TogglePlayerAllDynamicAreas(playerid, toggle);native IsPlayerInDynamicArea(playerid, areaid);native IsPlayerInAnyDynamicArea(playerid);native AttachDynamicAreaToPlayer(areaid, playerid);native AttachDynamicAreaToVehicle(areaid, vehicleid);native DestroyAllDynamicAreas();native CountDynamicAreas();
forward OnPlayerEnterDynamicArea(playerid, areaid);forward OnPlayerLeaveDynamicArea(playerid, areaid);
newCircle; // Global változó
//OnGameModeInit aláCircle = CreateDynamicCircle(Float:x, Float:y, Float:size); // x y koordináta size kör átmérõje tesztnek próbáld 2.00
publicOnPlayerEnterDynamicArea(playerid, areaid){if(Circle == areaid){SendClientMessage(playerid, -1, \"Beléptél a területre.\");}return 1;}publicOnPlayerLeaveDynamicArea(playerid, areaid){if(Circle == areaid){SendClientMessage(playerid, -1, \"Kiléptél a területrõl.\");}return 1;}