Demolition Derby - My first GM
#3

Quote:
Originally Posted by Luka[balkan-samp.com
]
Nice idea,but more for Mini Missions servers ho change gamemode every 10 minutes because
this is not for 'static' gamemode,gamemode doesn`t have story...
Yeah, but it's not meant to be something I'm neccesarily gonna put up. If I do decide to create a server that I'm going to make public, it'd probably be a RP server and this could be some sort of side game or something. Thanks for the input, anyway


Btw, I'm unsure how the server runs (I've not tested it in a while) so it might crash sometimes. Particularily when using certain commands (don't ask).

I really wanted to be able to fix this code...

Code:
if(!strcmp(cmdtext, "/dc", true, 3)) if(IsPlayerAdmin(playerid))
  {
    if(cmdtext[3] == 0)
		{
      SendClientMessage(playerid, 0xAA3333AA, "USAGE: /d(estroy)c(car) [CARID/PLAYERID]");
      return 1;
    }
    new yr,mnth,day,hr,minu,sec;
    new str[256],fs[256];
		new File:slg=fopen("server.log.txt",io_append);
		new Float:xx,Float:xy,Float:xz;
		GetPlayerName(playerid,str,256);
		GetVehiclePos(bangers[cmdtext[5]],xx,xy,xz);
		CreateExplosion(xx,xy,xz,15,4.0);
		getdate(yr,mnth,day);
		gettime(hr,minu,sec);
		format(fs, 256, "%s destroyed %s on %d/%d - %d:%d",str,cmdtext[5]);
    fwrite(slg, fs);
    fclose(slg);
  	return 1;
	}
That enables you to blow up peoples cars as an admin. But it crashes the server when used.

Another thing I wanna brag about... Each time a player leaves, instead of their car disapearing or respawning I decided to make it blow up to add more excitement to the match. Although I don't really know if it works as I'm unable to test it with 1 person :P
Reply


Messages In This Thread
Demolition Derby - My first GM - by Deji - 26.05.2009, 16:20
Re: Demolition Derby - My first GM - by Luka P. - 26.05.2009, 16:24
Re: Demolition Derby - My first GM - by Deji - 26.05.2009, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)