guys i need realy simple help [PLEASE] !!!
#1

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
Reply
#2

Код:
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.
Reply
#3

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;
}
Reply
#4

Lol @Mademan, u were too late
Copier xD
Reply
#5

ehh thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)