Onehitkill Posted December 12, 2019 Report Share Posted December 12, 2019 Am si eu aceasta comanda si vreau sa pun un timer cand sa explodeze CMD:explode(playerid,params[]) { new pid; if(sscanf(params,"u",pid))return SendClientMessage(playerid,0xff0000FF,"ERROR: Usage /explode [playerid/name]"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)) { new Float:x,Float:y,Float:z; GetPlayerPos(pid,x,y,z); GameTextForPlayer(pid,"Alakh Akhbar!",3000,3); return 1; } else SendClientMessage(playerid,0xff0000FF,"ERROR: Player not found"); return 1; } Quote Link to comment Share on other sites More sharing options...
StrikerM Posted December 12, 2019 Report Share Posted December 12, 2019 (edited) Acum 14 minute, Onehitkill a spus: Am si eu aceasta comanda si vreau sa pun un timer cand sa explodeze CMD:explode(playerid,params[]) { new pid; if(sscanf(params,"u",pid))return SendClientMessage(playerid,0xff0000FF,"ERROR: Usage /explode [playerid/name]"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)) { new Float:x,Float:y,Float:z; GetPlayerPos(pid,x,y,z); GameTextForPlayer(pid,"Alakh Akhbar!",3000,3); return 1; } else SendClientMessage(playerid,0xff0000FF,"ERROR: Player not found"); return 1; } Poftim, la timer BoomBoom ai [3000] alea sunt 3 secunde. CMD:explode(playerid,params[]) { new pid; if(sscanf(params,"u",pid))return SendClientMessage(playerid,0xff0000FF,"ERROR: Usage /explode [playerid/name]"); if(pid != INVALID_PLAYER_ID && IsPlayerConnected(pid)) { defer BoomBoom(pid); return 1; } else SendClientMessage(playerid,0xff0000FF,"ERROR: Player not found"); return 1; } timer BoomBoom[3000](pid) { new Float:x, Float:y, Float:z; GetPlayerPos(pid, x, y, z); CreateExplosion(x, y, z, 0, 5.0); SetPlayerHealth(pid, 0); GameTextForPlayer(pid, "Alakh Akhbar!", 3000, 3); return 1; } Edited December 12, 2019 by StrikerM Quote Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte. Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net. Aveti grija pe cine ajutati, majoritatea sunt caini. Link to comment Share on other sites More sharing options...
Onehitkill Posted December 13, 2019 Author Report Share Posted December 13, 2019 Ai facut vreo greseala ?, ca-mi da eroare tot gm-ul Quote Link to comment Share on other sites More sharing options...
Banditul Posted December 13, 2019 Report Share Posted December 13, 2019 Ce erori mai exact? Ca mie mi se pare corect cu mentiunea ca ce cod ti-a oferit Striker se foloseste de YSI Timers ceea e folosit ca tu sa nu folosesti de unde si erorile Quote Link to comment Share on other sites More sharing options...
Onehitkill Posted December 13, 2019 Author Report Share Posted December 13, 2019 Acum 5 minute, Banditul a spus: Ce erori mai exact? Ca mie mi se pare corect cu mentiunea ca ce cod ti-a oferit Striker se foloseste de YSI Timers ceea e folosit ca tu sa nu folosesti de unde si erorile Errorile sunt tot gm-ul, dar trebuia pus cu tot cu settimer in acelasi loc ? Quote Link to comment Share on other sites More sharing options...
AlexxAdv Posted December 13, 2019 Report Share Posted December 13, 2019 Pai daca n ai y_timers e logic.. Quote Link to comment Share on other sites More sharing options...
StrikerM Posted December 13, 2019 Report Share Posted December 13, 2019 (edited) Acum 6 ore, Onehitkill a spus: Errorile sunt tot gm-ul, dar trebuia pus cu tot cu settimer in acelasi loc ? Eu am crezut ca lucrezi pe un GM mai nou mai toate au y_timers. Adauga sus de tot #include <YSI\y_timers> Daca nu il ai, poti sa cauti pe net Edited December 13, 2019 by StrikerM Quote Ce inseamna cuvantul "Unic" este atunci cand Chestia / Obiectul / Idea / etc... nu exista in alta parte. Copii, nu mai veniti cu vorbe de "Am gamemode unic", nu exista asa ceva, la ora actuala totul este pe net. Aveti grija pe cine ajutati, majoritatea sunt caini. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.