SA-MP Forums Archive
HELP me please:( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP me please:( (/showthread.php?tid=146920)



HELP me please:( - David-Sean - 09.05.2010

Hey please help me with
Gangzones Maker [FS]
my pc is does't working...
here is my code

Код:
//At The Top Of The Script:
new Sinatra;

//Under OnGameModeInit
Sinatra = GangZoneCreate(1036.912109, -1373.183471, 1460.912109, -629.183471);

//Under OnPlayerSpawn:
GangZoneShowForPlayer(playerid, Sinatra, 199);
and this to

Код:
//At The Top Of The Script:
new Cops1;

//Under OnGameModeInit
Cops1 = GangZoneCreate(1417.200073, -1830.429077, 1689.200073, -1494.429077);

//Under OnPlayerSpawn:
GangZoneShowForPlayer(playerid, Cops1, 65477);
Код:
//At The Top Of The Script:
new Gang1;

//Under OnGameModeInit
Gang1 = GangZoneCreate(1639.181762, -2220.961181, 2031.181762, -1820.961181);

//Under OnPlayerSpawn:
GangZoneShowForPlayer(playerid, Gang1, 1538909898);
Код:
//At The Top Of The Script:
new Grove Streets;

//Under OnGameModeInit
Grove Streets = GangZoneCreate(2223.160644, -2026.785888, 2687.160644, -1458.785888);

//Under OnPlayerSpawn:
GangZoneShowForPlayer(playerid, Grove Streets, 16711888);






Re: HELP me please:( - David-Sean - 09.05.2010

any help?


Re: HELP me please:( - Babul - 09.05.2010

i assume your colors are transparent. the values you are using, are:
199 = 0xC7
65477 = 0xFFC5
1538909898 =0x5CC9E6CA <- here the alpha channel is defined (CA), is this zone showing up?
16711888 = 0xFF00D0
these values are not readable as decimal and you will need to convert them each time you modify. not good.
create colors like this: 0xRRGGBBAA. (RR=red, GG=green, BB=blue, AA=alpha). working with hexadecimal values is easier.
there are plenty of color code tables around, here u got some basic colors (with transparent effect (the last 2 digits (ox 7F, thats 127 in decimal) will set it to 50% transparency):
Код:
0xFF00007F //red
0xFF7F007F //orange
0xFFFF007F //yellow
0x00FF007F //green
0x00FFFF7F //cyan
0x007FFF7F //light blue
0x0000FF7F //blue
0xFF00FF7F //violet
0xFFFFFF7F //white
0x0000007F //black
edit: d'oh! the first color f.ex. (0xC7) is like 0x000000C7, that should show you a black zone with almost no transparency. so the colors i gave you wont solve your problem...


Re: HELP me please:( - David-Sean - 09.05.2010

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

new Sinatra;
new Gang1;


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Blank Filterscript by your name here");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Blank Gamemode by your name here");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
GangZoneCreate(1036.912109, -1373.183471, 1460.912109, -629.183471);
GangZoneCreate(1639.181762, -2220.961181, 2031.181762, -1820.961181);
GangZoneCreate(2223.160644, -2026.785888, 2687.160644, -1458.785888);
}

public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, 0x0000007F, 0x0000007F);
GangZoneShowForPlayer(playerid, 0x007FFF7F, 0x007FFF7F);
GangZoneShowForPlayer(playerid, 0x00FF007F, 0x00FF007F);

}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
	return 1;
}

public OnPlayerText(playerid, text[])
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		// Do something here
		return 1;
	}
	return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnPlayerRequestSpawn(playerid)
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
	return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
	return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
	return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
	return 1;
}

public OnPlayerUpdate(playerid)
{
	return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
	return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
	return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
	return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
	return 1;
}
does't working not error but
i can't see on the map no have gangzones