Suggestions For My Server
#2

make a nuke

(ontop of the script) new Float, Float:y, Float:z;

if ( strcmp( cmd, "/nuke", true ) == 0 )
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Unknown command.");

new tmp[256];

tmp = strtok( cmdtext, idx );

if ( !strlen( tmp ) ) { return 1; }

if ( GetPlayerVehicleID( strval(tmp) ) )
{
CreateExplosion(x,y,z,100); <- do a couple of those and if you want the explosion just to the side or top of the player use it like this CreateExplosion(x,y,z+10,100); now it will be 10 higher
SetPlayerHealth(strval(tmp), 0);

} else {
CreateExplosion(x,y,z,100);
SetPlayerHealth(strval(tmp), 0);
}
return 1;
}
Reply


Messages In This Thread
Suggestions For My Server - by Shockey - 08.08.2010, 11:07
Re: Suggestions For My Server - by Henkiee - 08.08.2010, 12:09
Re: Suggestions For My Server - by Shockey - 08.08.2010, 12:12
Re: Suggestions For My Server - by ikey07 - 08.08.2010, 12:14
Re: Suggestions For My Server - by Henkiee - 08.08.2010, 12:15
Re: Suggestions For My Server - by willsuckformoney - 08.08.2010, 12:34
Re: Suggestions For My Server - by ikey07 - 08.08.2010, 12:39
Re: Suggestions For My Server - by willsuckformoney - 08.08.2010, 12:42
Re: Suggestions For My Server - by ikey07 - 08.08.2010, 12:51
Re: Suggestions For My Server - by [DRD]Rodney - 08.08.2010, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)