Zek0r Posted April 19, 2017 Posted April 19, 2017 Salut, cine ma poate ajuta cu un sistem de safezone, nu stiu sa il fac deaia apelez la voi, am cautat pe youtube/google dar nu am gasit , folosesc un GM Big-Zone, coordonatele pe care vreau sa fac safe-zonul sunt: 1081.3616,-1698.1654,13.5469 (Aici mi-am pus eu spawn civil) Quote
Kingsley Posted April 19, 2017 Posted April 19, 2017 Te duci la OnPlayerGiveDamage si folosesti IsPlayerRangeOfPoint: public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { if (IsPlayerInRangeOfPoint(playerid, 45.0, 1081.3616, -1698.1654, 13.5469)) { Kick(playerid); } return 1; } Quote
CreativeREAL Posted April 19, 2017 Posted April 19, 2017 =))) sti ca daca dai cu pumnul in raza aia iei kick nu ? :))) Quote
GetRekt Posted April 20, 2017 Posted April 20, 2017 Depinde si ce GM BigZone ai, multe dintre ele au comenzi ascunse.. Quote
Kingsley Posted April 20, 2017 Posted April 20, 2017 Depinde si ce GM BigZone ai, multe dintre ele au comenzi ascunse.. Ce treaba au safezone-urile cu (,) comenzile ascunse? Quote
GetRekt Posted April 20, 2017 Posted April 20, 2017 Ce treaba au safezone-urile cu (,) comenzile ascunse? Nu au nici o treaba, insa l-am anuntat sa aiba grija la ce gamemode lucreaza. Eu am lucrat la un gamemode 3 luni, si dupa am aflat ca are foarte multe comenzi ascunse si buguri in el. Quote
Kingsley Posted April 22, 2017 Posted April 22, 2017 mai bine pui slap :) public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { if (IsPlayerInRangeOfPoint(playerid, 45.0, 1081.3616, -1698.1654, 13.5469)) { new Float: Location[3]; GetPlayerPos(playerid, Location[0], Location[1], Location[2]); SetPlayerPos(playerid, Location[0], Location[1]+4, Location[2]); SendClientMessage(playerid, COLOR_RED, "DM -> kick + warn nu stam la discutii"); } return 1; } Quote
Liviu32 Posted April 23, 2017 Posted April 23, 2017 (edited) public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { if (IsPlayerInRangeOfPoint(playerid, 45.0, 1081.3616, -1698.1654, 13.5469)) { new safezone[MAX_PLAYER_NAME], string[100]; GetPlayerName(playerid, safezone, sizeof(safezone)); format(string, sizeof(string), "[AdmCmd]: %s was kicked by AdmBot, reason: n ai voie sa stai aici", safezone); SendClientMessageToAll(COLOR_LIGHTRED, string); BanEx(playerid); } return 1; } mai bn Edited April 23, 2017 by Liviu32 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.