WTF explode urself with /kill = batch close? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: WTF explode urself with /kill = batch close? (
/showthread.php?tid=122828)
WTF explode urself with /kill = batch close? -
braduz - 23.01.2010
what the fuck, this pwn code closes my server (batch)
if(strcmp(cmdtext, "/kill", true) == 0) { // Same deal as before
new Float

, Float:y, Float:z;
// Get Player Position
GetPlayerPos(playerid, x, y, z);
// Create an explosion near the vehicle you get into
CreateExplosion(x+random(5), y+random(20), z+random(5), 6, 1000.0);
return 1;
}
Re: WTF explode urself with /kill = batch close? -
FireFox_ - 23.01.2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kill", true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateExplosion(X+random(5), Y+random(5), Z+random(5), 6, 1000);
return 1;
}
return 0;
}
This code isnt test so i dont know if it works.
Re: WTF explode urself with /kill = batch close? -
braduz - 23.01.2010
Quote:
Originally Posted by <Krys>
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/kill", true) == 0) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X,Y,Z); CreateExplosion(X+random(5), Y+random(5), Z+random(5), 6, 1000); return 1; } return 0;
that code rapes my pawn and crashes it, again- wtf
This code isnt test so i dont know if it works.
|
Re: WTF explode urself with /kill = batch close? -
Luca Dimonte - 23.01.2010
Maybe because you are adding a integer (random (integer) )to a float. Do a conversion
X + float (random(5))
Re: WTF explode urself with /kill = batch close? -
braduz - 23.01.2010
Quote:
Originally Posted by Luca Dimonte
Maybe because you are adding a integer (random (integer) )to a float. Do a conversion
X + float (random(5))
|
And how will i do this...?
Re: WTF explode urself with /kill = batch close? -
braduz - 23.01.2010
FUCKINGupdate
SERVER RAPE WHEN SOMEONE DIES
WHAT THE FUCK?
Re: WTF explode urself with /kill = batch close? -
dice7 - 23.01.2010
Because the explosion radius goes halfway the map
Re: WTF explode urself with /kill = batch close? -
braduz - 23.01.2010
Quote:
Originally Posted by dice7
Because the explosion radius goes halfway the map
|
removed it, server still fucking crashes if someone is blown up by the car explosion