18.05.2014, 18:53
Sorry, I meant to post a link to the topic for full credits, not directly to pastebin: https://sampforum.blast.hk/showthread.php?tid=339088
GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Does not require to show, it will create and show for every player
GangZoneSetColor(zoneid, color); // Would change zone color for every player
CreatePlayerGangZone(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy, color); // Same..
PlayerGangZoneFSetColor(zoneid, color);
[...]Example:
pawn Code:
|
[WSF]ThA_Devil: Add Float: tag yourself, will be fixed in R5.
I want to add per-player gang zone system, which would require to rewrite compelte zone system. I don't like this create and show method, so I would love to change that. I want to rewrite it like object system, create & show at same time. Example: pawn Code:
|
Can you tell us your opinion on the list of suggestions above if they're possible or not.
This one especially http://forum.sa-mp.com/showpost.php?...3&postcount=11 |
ICMD:ws(playerid, params[])
{
if(!wse[playerid])
{
TogglePlayerWidescreen(playerid, true);
wse[playerid] = 1;
}
else
{
TogglePlayerWidescreen(playerid, false);
wse[playerid] = 0;
}
return 1;
}
[16:27:32] Widescreen = 1 [16:27:39] Widescreen = 0
[18:29:57] [debug] Server crashed while executing tests.amx
[18:29:58] [debug] AMX backtrace:
[18:29:58] [debug] #0 native SetPlayerWeather () [01323900] from YSF.dll
[18:29:58] [debug] #1 00001298 in public OnPlayerSpawn (playerid=0) at D:\samp03z\gamemodes\tests.pwn:87
[18:29:59] [debug] Native backtrace:
[18:29:59] [debug] #0 01323999 in ?? () from plugins\YSF.dll
[18:29:59] [debug] #1 01843a46 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #2 018450fa in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #3 0183c7f3 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #4 01843a96 in ?? () from plugins\crashdetect.dll
[18:29:59] [debug] #5 0046cf10 in ?? () from samp-server.exe
[18:29:59] [debug] #6 00000009 in ?? () from samp-server.exe
SetPlayerWeather(playerid, 1);
stock GetPlayerGangZone(playerid)
{
for(new i = 0; i != MAX_GANG_ZONES; ++i)
{
if(IsPlayerInGangZone(playerid, i))
{
return i;
}
}
return -1;
}