SA-MP Forums Archive
guys i need realy simple help [PLEASE] !!! - 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: guys i need realy simple help [PLEASE] !!! (/showthread.php?tid=180952)



guys i need realy simple help [PLEASE] !!! - [Lsrcr]Rafa - 03.10.2010

guys pls tell me when ill tupe /explodeme to explode the player who tupe it i make this but idk i thing need one more line

pawn Код:
if(strcmp("/explodeme", cmdtext, true, 10) == 0)
    {
        CreateExplosion(0.0, 0.0, 0.0, 1, 10.0);
        SetPlayerHealth(playerid, 0.0);
        return 1;
    }
i know need something GetPlayerPos(playerid) but idk am not sure

Thanks


Re: guys i need realy simple help [PLEASE] !!! - Mike_Peterson - 03.10.2010

Код:
if(strcmp("/explodeme", cmdtext, true, 10) == 0)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
CreateExplosion(x, y, z, 1, 10.0);
SetPlayerHealth(playerid, 0.0);
return 1;
}
There you go.


Re: guys i need realy simple help [PLEASE] !!! - MadeMan - 03.10.2010

pawn Код:
if(strcmp("/explodeme", cmdtext, true) == 0)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    CreateExplosion(x, y, z, 1, 10.0);
    SetPlayerHealth(playerid, 0.0);
    return 1;
}



Re: guys i need realy simple help [PLEASE] !!! - Mike_Peterson - 03.10.2010

Lol @Mademan, u were too late
Copier xD


Re: guys i need realy simple help [PLEASE] !!! - [Lsrcr]Rafa - 03.10.2010

ehh thanks guys