SA-MP Forums Archive
How can you define functions from singleplayer? - 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: How can you define functions from singleplayer? (/showthread.php?tid=91678)



How can you define functions from singleplayer? - Rickk - 16.08.2009

Here is my question:
I found a program wich allows you to check the singleplayer script. This program includes a file (KEYWORDS) that includes all functions from singleplayer.
View the file here: http://pastebin.com/m71fb12f5

It contains very usefull functions like: CreateFire of isfireextinguished. There are over 200 of these function, most of them very usefull for servers.
But I don't know how to intergrate them into my server. I tried it with createfire, but no luck this far.

I would be most pleased if somebody could help me with this.


Re: How can you define functions from singleplayer? - Sergei - 16.08.2009

Try something like this:

pawn Код:
if(singleplayer == multiplayer)
{
 SetLolForPlayer(playerid, 1337);
 return 0;
}
else if(singleplayer != multiplayer)
{
 return 1;
}
After you compile this you get: Singleplayer is not multiplayer lol


Re: How can you define functions from singleplayer? - Rickk - 16.08.2009

I don't get it :P