[HELP,PROBLEM] Pickup's, Plugins, Area
#1

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:
Код:
forward bazearea();
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...

Reply
#2

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;
}
Reply
#3

but i have not got 400 pickups...
Reply
#4

i hace less than 400 pickups, but still some of them not showing, also, when i put pickup code in other FS it works!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)