03.08.2011, 15:23
Hello, I am kinda new to this, so bear with me here.
I was trying to make an explosion command:
But PAWN program shuts down so there is something seriously wrong there, maybe this cant be done? Can someone please show me how to do this right, I would really appreciate it! Also, adding luxadmin to this command so only I can use it, like this:
Thanks in advance!
I was trying to make an explosion command:
pawn Код:
if (strcmp(cmd, "/boom", true) == 0)
{
CreateExplosion(268.99725342,1883.84851074,-25.94452477, 1, 10.0); //object(binnt07_la) (1)
CreateExplosion(268.99707031,1883.84765625,-23.94452477, 1, 10.0); //object(binnt07_la) (2)
CreateExplosion(268.99707031,1883.84765625,-21.69452477, 1, 10.0); //object(binnt07_la) (3 CreateExplosion(268.99707031,1883.84765625,-19.19452477, 1, 10.0); //object(binnt07_la) (4)
CreateExplosion(268.99707031,1883.84765625,-16.69452477, 1, 10.0); //object(binnt07_la) (5)
CreateExplosion(268.99707031,1883.84765625,-13.94452477, 1, 10.0); //object(binnt07_la) (6)
CreateExplosion(268.99707031,1883.84765625,-10.69452477, 1, 10.0); //object(binnt07_la) (7)
CreateExplosion(268.99707031,1883.84765625,-7.94452477, 1, 10.0); //object(binnt07_la) (8)
CreateExplosion(268.99707031,1883.84765625,-4.94452477, 1, 10.0); //object(binnt07_la) (9)
CreateExplosion(268.99707031,1883.84765625,-2.19452477, 1, 10.0); //object(binnt07_la) (10)
CreateExplosion(268.99707031,1883.84765625,0.80547523, 1, 10.0);//object(binnt07_la) (11)
CreateExplosion(268.99707031,1883.84765625,3.55547523, 1, 10.0); //object(binnt07_la) (12)
CreateExplosion(268.99707031,1883.84765625,6.80547523, 1, 10.0); //object(binnt07_la) (13)
CreateExplosion(268.99707031,1883.84765625,10.55547523, 1, 10.0); //object(binnt07_la) (14)
CreateExplosion(268.99707031,1883.84765625,19.80547523, 1, 10.0); //object(binnt07_la) (15)
CreateExplosion(268.99707031,1883.84765625,19.80547523, 1, 10.0); //object(binnt07_la) (16)
}
return 1;
}
pawn Код:
if(IsPlayerLuxAdminLevel(playerid, 10))