25.04.2013, 23:14
I made a script, gamemode.pwn lets call it. What file do I write for the server to load it?
echo Executing Server Config... lanmode 0 rcon_password rconpass maxplayers 20 port 7777 hostname SA-MP 0.3 Server gamemode0 Gamemodenamehere 1 filterscripts announce 1 plugins query 1 chatlogging 0 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S]
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
ublic on player command textpublic OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
if (strcmp("/mycommand2", cmdtext, true, 10) == 0)
{
// Do something herefg
return 1;
}
return 0;
}