SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 195
Search took 0.01 seconds.
Search: Posts Made By: Desert
Forum: Tutorials 30/09/2010, 07:44 AM
Replies: 51
Views: 20,176
Posted By Desert
Re: GetMaxPlayers() > MAX_PLAYERS ?

Yep :D I also forgot to mention it, that's why i edited the post about 20 seconds after it was posted because i realised i forgot to say foreach is better. But this also works on normal player...
Forum: Tutorials 30/09/2010, 07:34 AM
Replies: 51
Views: 20,176
Posted By Desert
GetMaxPlayers() > MAX_PLAYERS ?

GetMaxPlayers is a unused, maybe even forgotten function. Instead of it, we use the good old MAX_PLAYERS. MAX_PLAYERS, who after the release of 0.3, has been defined as 500. Because 500 is the max...
Forum: Help Archive 29/09/2010, 09:41 AM
Replies: 10
Views: 1,114
Posted By Desert
Re: its possible ??? o_0

It's possible to change the names of the zones. If you have downloaded a zone script, just open it and change the names. If not then you will have to get 1 or make your own.


And for the gate,...
Forum: Help Archive 28/09/2010, 10:50 AM
Replies: 9
Views: 4,917
Posted By Desert
Re: Checkpoints and Markers

My experience is that white color is invisible (and black maybe) so isn't needed to hide them
Forum: Help Archive 28/09/2010, 09:53 AM
Replies: 4
Views: 719
Posted By Desert
Re: Changing Maps?

The simple way to do that is to make copy(copies) of your script, and change the spawn co-ordinates. Then add a timer to each of the scripts that will change gamemode when time is over.

Or you can...
Forum: Help Archive 28/09/2010, 09:51 AM
Replies: 4
Views: 2,638
Posted By Desert
Re: IsKeyJustDown cmd

If your gonna make it a command, it should be under OnPlayerCommandText
Forum: Help Archive 28/09/2010, 09:49 AM
Replies: 9
Views: 4,917
Posted By Desert
Re: Checkpoints and Markers

Making their blip red is done by making their color red ( SetPlayerColor(wantedplayer,redcolor); )
Forum: Help Archive 23/09/2010, 12:12 PM
Replies: 5
Views: 769
Posted By Desert
Re: Need some help

2 Things could be wrong. It could be either that your not in the area, or have over 100 dollars. It's kinda hard to tell since you don't send error messages when something like that isn't right
...
Forum: Help Archive 23/09/2010, 11:41 AM
Replies: 14
Views: 2,596
Posted By Desert
Re: Pissing on another player

As RetardedWolf already said it's IsPlayerInRangeOfPoint.

But you also need to make ; in the end of the if statement to ). (if statement gives error if ; is put)

And also you need to break; the...
Forum: Everything and Nothing 23/09/2010, 07:34 AM
Replies: 83
Views: 9,485
Posted By Desert
Re: vBulletin or SMF?

I vote SMF because it's free. And i like the way it looks and how easy it is to use
Forum: Help Archive 22/09/2010, 04:40 PM
Replies: 2
Views: 692
Posted By Desert
Re: npc help

How it's made depends on if you want to put the code in the NPC script or the gamemode/filterscript


Which one?
Forum: Help Archive 22/09/2010, 03:43 PM
Replies: 10
Views: 2,080
Posted By Desert
Re: Creating a non-moving npc

Make a NPC script only with the folowing

#include <a_npc>
main(){}

Load the NPC, set hes possition angle interior and stuff. And freeze him.

Worked for me
Forum: Help Archive 22/09/2010, 11:20 AM
Replies: 11
Views: 1,520
Posted By Desert
Re: Saving stats

In theory, you don't need to add those "saving lines" in the file during the registration as the INC should create them the first time stats is saved. Creating the file should be the only needed...
Forum: Help Archive 22/09/2010, 09:54 AM
Replies: 6
Views: 1,027
Posted By Desert
Re: Where To Take CO-Ordinates

Minimum X is west side. Maximum X east. Minimum Y south. And maximum Y north. Like in a diagram.
Forum: Help Archive 22/09/2010, 09:44 AM
Replies: 11
Views: 1,520
Posted By Desert
Re: Saving stats

Im not familiar to that INC your using, but it seems right to me.

My theory is that when a player types /q the player stats get automatically deleted as a nice feature of GetPVar.
I think that...
Forum: Help Archive 22/09/2010, 05:54 AM
Replies: 8
Views: 1,099
Posted By Desert
Re: Why isnt this working

I don't see you define closest to a player or a loop. Did you forget it or just not show it?


And i recommend you to check if the closest is already a zombie or you could just infect the same...
Forum: Help Archive 21/09/2010, 03:09 PM
Replies: 3
Views: 791
Posted By Desert
Re: player is not connected?

Try putting the sscanf code before you check if the player is online.
Forum: Help Archive 10/09/2010, 07:23 AM
Replies: 17
Views: 4,020
Posted By Desert
Re: [ERRORS] Errors appear after adding a Gang System.

Only thing i can see wrong is the lack of { in the beginning. But i dont know much about strcmp command uses.
Forum: Help Archive 10/09/2010, 07:14 AM
Replies: 2
Views: 536
Posted By Desert
Re: Look at this plz

Wanted level isn't a float. (Unless you plan on giving players wanted level 2.000001 or something like that)


On Topic:

The < and > means is bigger than, or less than. So "wanted < 3" means:...
Forum: Help Archive 10/09/2010, 06:59 AM
Replies: 7
Views: 863
Posted By Desert
Re: GUYS NEED BIG AND FAST HELP !

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

#include <a_samp>
#define teleportmenu 500
#if defined FILTERSCRIPT

#endif
Forum: Help Archive 15/06/2010, 10:37 AM
Replies: 1
Views: 960
Posted By Desert
Re: Freeze player on enter

The reason for that is you want to use freezeonenterr to save players id, but you forget to save it. Therefor the ID unfreezed will always be 0 because a non-defined variable is 0.

This will also...
Forum: Help Archive 10/06/2010, 06:28 AM
Replies: 5
Views: 1,811
Posted By Desert
Re: NPC Bus oncoming traffic detection - I need a genious

Hes looking for the bot to see infront of itself instead of it brakes if someone is behind it.


Go look in the npc scripts and find the "LS taxi test" script which follows the server download,...
Forum: Filterscripts 09/06/2010, 07:41 PM
Replies: 17
[FilterScript] [FS] Double Hopping
Views: 4,308
Posted By Desert
Re: [FS] Double Hopping

Seems to me as you havn't updated your a_players include recently. Go get a new version at www.sa-mp.com
Forum: Help Archive 08/06/2010, 06:07 AM
Replies: 6
Views: 1,135
Posted By Desert
Re: 2 Questions about DIALOG_STYLE_INPUT

When you create a dialog with the input style, what he types will be stored in the inputtext[] in the dialog callback. Then it's simple:

if(dialogid == ?)
{
if(strlen(inputtext) >= 5)
{...
Forum: Help Archive 07/06/2010, 11:27 AM
Replies: 2
Views: 1,223
Posted By Desert
Re: How to detect..

stock IsVehicleInUse(vehicleid)
{
new IsTrue=0;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i) == vehicleid)...
Showing results 1 to 25 of 195

 

All times are GMT. The time now is 08:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.