[HELP,PROBLEM] Pickup's, Plugins, Area - 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,PROBLEM] Pickup's, Plugins, Area (
/showthread.php?tid=88696)
[HELP,PROBLEM] Pickup's, Plugins, Area -
cigo - 28.07.2009
HI, I have 3 questions.
1. = Is there any pickup limit in sa-mp? I've saved pickups, but only half of them is showing.
2. = How to add plugins to my server? I have created folder named ''Plugins'', and added plugins line in server.cfg, but plugin stil not load.
3. = What is wrong with this area?:
above main:
under ongamemodeinit:
Код:
SetTimer("bazearea",1000, 1);
and:
Код:
public bazearea()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= -1665 && X >= -1712 && Y <= -239 && Y >= -239)
{
if (gPlayerLevel[i] < 10)
SetPlayerHealth(i, -999999.9);
}
}
}
*
Код:
if (gPlayerLevel[i] < 10)
is part of my level system
I have 2 other areas like this one, but they are working...
Re: [HELP,PROBLEM] Pickup's, Plugins, Area -
GTA_Rules - 28.07.2009
1. Yes, 400.
2. Try not using a capital but use 'plugins' instead. (Also make sure you have the folder 'plugins' where you place the plugin).
Код:
public bazearea()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i, X, Y, Z);
if (X <= -1665 && X >= -1712 && Y <= -239 && Y >= -239) // I suggest IsPlayerInArea though
{
if (gPlayerLevel[i] < 10)
{
SetPlayerHealth(i, 0);
}
}
}
return 1;
}
Re: [HELP,PROBLEM] Pickup's, Plugins, Area -
cigo - 28.07.2009
but i have not got 400 pickups...
Re: [HELP,PROBLEM] Pickup's, Plugins, Area -
cigo - 28.07.2009
i hace less than 400 pickups, but still some of them not showing, also, when i put pickup code in other FS it works!