26.05.2009, 16:36
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... |
![Cheesy](images/smilies/biggrin.png)
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; }
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