Timer Problem
#3

try

pawn Код:
if ( !strcmp( "/cannonfire", cmdtext, true, 10 ) )
 {
   if(  GetPlayerMoney(playerid) < 10000 ) return SendClientMessage( playerid, 0xFF0000FF, "You dont have Enough Money For a Cannon Strike" );
    else
   {
        new Float:P[3];
        GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );

         SendClientMessage( playerid, 0x00FF00FF, "Cannon fire on your position in 6 Seconds and counting!" );
         GivePlayerMoney( playerid, -10000 );
         SetTimerEx( "CannonExplosion", 6000, false, "ifff", playerid, P[0], P[1], P[2] );
    }
    return true;
 }

forward CannonExplosion(playerid, x, y, z);
public CannonExplosion(playerid, x, y, z)
{
    CreateExplosion( x + random( 5 ), y + random( 5 ), z + random( 5 ), 6, 100.0 );
}
Reply


Messages In This Thread
Timer Problem - by jiwan - 21.10.2011, 07:19
Re: Timer Problem - by iJumbo - 21.10.2011, 08:29
Re: Timer Problem - by [DK]Dark_Knight - 21.10.2011, 08:52

Forum Jump:


Users browsing this thread: 2 Guest(s)