Will this work?
#1

Ok im adding a robbery faction for my rp,
And im adding a bridge able to blow up,
And there is 3 pickup`s, When u walk to them,
You can say /plantc4, And it will set off a timer for 30 seconds,
After that 30 seconds is up, BOOM, So im wondering will this code work,

pawn Код:
if(!strcmp(cmdtext, "/plantc4", true))
  {
    SetTimer("C4",30000,false);
    return 1;
  }

public C4()
{
    CreateExplosion( x, y ,z, type, float:radius);
}
Will that work? I obviously will change the X, Y, Z, Type And Radius,
I have forwarded it also,
Reply
#2

Yep
Reply
#3

Quote:
Originally Posted by Stevelo
Yep
Its not working
Reply
#4

From what you've given us...there's no reason why it shouldn't work. Have you forwarded public C4? Are you putting the values of x, y, and z in as floats?

Код:
forward C4(x, y, z); //at the top of your script

if(!strcmp(cmdtext, "/plantc4", true))
  {
    new Float: x, Float: y, Float: z;
    GetPlayerPos(playerid, x, y, z); 
    SetTimerEx("C4",30000,false,"fff", x, y, z);
    return 1;
  }

public C4(x, y, z)
{
    CreateExplosion( x, y ,z, type, float:radius);
}
Maybe try something like that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)