[Ajuda] AJUDA AQUI
#1

Intгo tenho o comando /plantarbomba, mais to querendo que ele tenha um intervalo de 3 minutos para plantar a bomba novamente.

PHP код:
if(!strcmp(cmd,"/plantarbomba",true)){
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
dini_Int(file"Profissao") == Terrorista || dini_Int(file"Profissao") == MRussa){
new 
dinid,Float:x,Float:y,Float:z;
if(
IsPlayerInAnyVehicle(playerid)){
SendClientMessage(playerid,Vermelho,"[ x ] Vocк nгo pode plantar uma bomba dentro do veiculo.");
return 
1;
}
GetPlayerPos(playerid,x,y,z);
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000);
SetTimerEx("CriarExplosao",8000,false,"fffdf",x,y,z,2,50.0);
dinid CreateObject(1252,x,y,z-0.8,0,0,0);
SetTimerEx("DestruirObjeto",8000,false,"d",dinid);
GameTextForPlayer(playerid,"~r~BOMBA ~b~PLANTADA",2000,4);
return 
1;
}

Reply


Messages In This Thread
AJUDA AQUI - by powerths - 01.10.2013, 15:57
Re: AJUDA AQUI - by PT - 01.10.2013, 16:26
Re: AJUDA AQUI - by arakuta - 01.10.2013, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)