Re : Execute PAWN Functions In-Game -
ludesert - 25.06.2011
This is a very good idea !!!
I tryed it, but it don't work for me ...
How must I use it ? Can anybody explain me step by step please ? Because my server returns unknow command ...
Thanks =)
Re: Execute PAWN Functions In-Game -
GangsTa_ - 25.06.2011
Use
Код:
/exec Ban(playerid);
Re : Execute PAWN Functions In-Game -
ludesert - 25.06.2011

I don't want to ban, I want to know how to use this filterscript ^^
Re : Execute PAWN Functions In-Game -
ludesert - 26.06.2011
It works perfectly for me now. But I had a problem : everyone could use /exec command ! So I little changed the filterscript and it is now :
pawn Код:
#include <a_samp>
#define ERROR_OUT_OF_MEMORY_SOURCES 0
#define ERROR_BAD_FORMAT 11
#define ERROR_FILE_NOT_FOUND 2
#define ERROR_PATH_NOT_FOUND 3
native WinExec(execPath[]);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/exec", true, 5))
{
if (!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, 0xFF0000AA, "You are not an admin ! !");
else if(cmdtext[5] != ' ' || cmdtext[6] == EOS)
return SendClientMessage(playerid, 0xFF0000FF, "/exec [command]");
else
{
new
File: execFile,
pawnScript[256]
;
execFile = fopen("ExecFS.pwn", io_write);
if(execFile)
{
strcat(pawnScript, "#include <a_samp>\r\n\r\n");
strcat(pawnScript, "public OnFilterScriptInit()\r\n");
strcat(pawnScript, "{\r\n\t");
strcat(pawnScript, cmdtext[6]);
strcat(pawnScript, "\r\n}");
fwrite(execFile, pawnScript);
fclose(execFile);
if(WinExec("pawno\\pawncc.exe ./scriptfiles/ExecFS.pwn"))
{
SetTimer("ReloadFS", 50, 0);
return 1;
}
else return SendClientMessage(playerid, -1, "WinExec is unable to execute pawncc.exe!");
}
return 0;
}
}
return 0;
}
forward ReloadFS();
public ReloadFS()
{
if(fexist("ExecFS.amx"))
SendRconCommand("reloadfs ../scriptfiles/ExecFS");
}
Now, you must be admin to use the command.
Re: Execute PAWN Functions In-Game -
Rapgangsta - 07.07.2011
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team
[23:43:12] filterscripts = "" (string)
[23:43:12]
[23:43:12] Server Plugins
[23:43:12] --------------
[23:43:12] Loading plugin: WinExec
[23:43:12] Failed.
[23:43:12] Loaded 0 plugins.
[23:43:12]
[23:43:12] Ban list
[23:43:12] --------
[23:43:12] Loaded: samp.ban
[23:43:12]
[23:43:12]
[23:43:12] Filter Scripts
[23:43:12] ---------------
[23:43:12] Loaded 0 filter scripts.
[23:43:12] Minimode loaded
[23:43:12] Number of vehicle models: 0
Re : Execute PAWN Functions In-Game -
Alvin007 - 07.07.2011
looks a bit hard to use ,but thanks bro
Re: Execute PAWN Functions In-Game -
RyDeR` - 08.07.2011
Quote:
Originally Posted by Rapgangsta
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team
[23:43:12] filterscripts = "" (string)
[23:43:12]
[23:43:12] Server Plugins
[23:43:12] --------------
[23:43:12] Loading plugin: WinExec
[23:43:12] Failed.
[23:43:12] Loaded 0 plugins.
[23:43:12]
[23:43:12] Ban list
[23:43:12] --------
[23:43:12] Loaded: samp.ban
[23:43:12]
[23:43:12]
[23:43:12] Filter Scripts
[23:43:12] ---------------
[23:43:12] Loaded 0 filter scripts.
[23:43:12] Minimode loaded
[23:43:12] Number of vehicle models: 0
|
Just install .net Framework 4 and it should be fine.
Re: Execute PAWN Functions In-Game -
The__ - 30.03.2012
That's an amazing filterscript.
Re: Execute PAWN Functions In-Game -
mikiii18 - 04.06.2012
Quote:
Originally Posted by Pooh7
Nice.
Can you make it for Linux?
|
I want it too xD
Re: Execute PAWN Functions In-Game -
Lorenzo* - 25.06.2012
Wow from the video it looks great, downloading now

.
Re: Execute PAWN Functions In-Game -
ViruZz - 18.07.2012
Pretty amazing.
I've remembered I coded something a like once back in 2010 for a small community and it was useless because you still need to restart the server so just hit compile on pawno then GMX.
Re: Execute PAWN Functions In-Game - Guest4390857394857 - 26.01.2014
Nice
Re: Execute PAWN Functions In-Game -
Sabur - 23.02.2014
Thanks dude, love you for4ver for this cool script !