Jump to content

Recommended Posts

Posted

Buna ziua am si eu un server de samp RPG.

Problema:Atunci cand scriu ceva in cheat .ex.( ce faci ? ) se vede la toti jucatorii care nu sunt in apropiere.

Ma putrti ajuta cum sa fac cheat-ul pe o raza ? 10-15 m.

Gamemode:wa-rpg.YCMD

Host:ultra-h

Cateva define-uri:define color_rosuvv2 , define color_verdev2 ... ETC

Ma puteti ajuta ? Dau +5

  • 2 weeks later...
Posted (edited)
Server:SendLocalMessageEx(playerid, color, msg[]) {
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);

	foreach(Player, i) {
		if(LoggedIn[i]) {
            		if(IsPlayerInRangeOfPoint(playerid, 15.0, x, y, z) && GetPlayerInterior(i) == GetPlayerInterior(playerid) && GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid)) {
				SendClientMessage(i, color, msg);
			}
		}
	}
	return 1;
}

Am setat o raza de 15. Poti sa o setezi dupa preferintele tale.

Edited by _alchemy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.