Jump to content

Recommended Posts

Posted

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;
}

 

Posted (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 by StrikerM

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.

Posted

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

Posted
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 ?

Posted (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 by StrikerM

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.