09.07.2009, 11:33
SetTimerEx("C4",10000,false,"is",1,"C4 has exploded");
public C4(playerid, cmdtext[])
{
//-------------------------------[C4]-------------------------------------------
if(strcmp(cmdtext, "/c4", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
ApplyAnimation(playerid,"ped","bomber",4.1,0,1,1,1 ,1);
SendClientMessage(playerid, COLOR_ROB, "C4 set, in 10 seconds it will explode");
new Floatcx, Floatcy, Floatcz;
GetPlayerPos(playerid,scx, scy, scz);
CreateExplosion(scx+1,scy+1,scz+1,7,100);
}
return 1;
}
return 0;
}
THats all i made
public C4(playerid, cmdtext[])
{
//-------------------------------[C4]-------------------------------------------
if(strcmp(cmdtext, "/c4", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
ApplyAnimation(playerid,"ped","bomber",4.1,0,1,1,1 ,1);
SendClientMessage(playerid, COLOR_ROB, "C4 set, in 10 seconds it will explode");
new Floatcx, Floatcy, Floatcz;
GetPlayerPos(playerid,scx, scy, scz);
CreateExplosion(scx+1,scy+1,scz+1,7,100);
}
return 1;
}
return 0;
}
THats all i made