Simple question..
#2

yep its like strcmp takes 1-3 seconds to respond when u do /pc zcmd responds right away even if you lag very much

e.g zcmd

pawn Код:
CMD:heal(playerid, params[])
{
    if(gTeam[playerid] == TEAM_MEDIC)
        {
                new pid,  msg[256];
                if(sscanf(params, "u", pid)) return SendClientMessage(playerid, RED, "Usage: '/heal [playerid]'");
                if(IsPlayerConnected(pid))
                {
                    SetPlayerHealth(pid, 100);
                    format(msg, sizeof(msg), "%s has healed you.", ReturnName(playerid));
                    SendClientMessage(pid, YELLOW, msg);
                    format(msg, sizeof(msg), "You healed %s.", ReturnName(pid));
                    SendClientMessage(playerid, YELLOW, msg);
                }
                else
                {
                SendClientMessage(playerid, RED, "Player not connected Or Is YourSelf!");
                }
            }
        else
        {
        SendClientMessage(playerid, RED, "Only Medic's Can Use This Command!");
    }
    return 1;
}

[e.g teleport]

pawn Код:
CMD:adminbasels(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid) == 1)
    {
            SetVehiclePos(GetPlayerVehicleID(playerid),250.0003,-1821.5791,4.0133);
            new pvehicleid;
            SetVehicleZAngle(pvehicleid, 406);
    }
    else    SetPlayerPos(playerid,250.0003,-1821.5791,4.0133);
    return 1;
}
Reply


Messages In This Thread
Simple question.. - by GaGlets(R) - 13.07.2010, 04:32
Re: Simple question.. - by Kar - 13.07.2010, 04:34
Re: Simple question.. - by GaGlets(R) - 13.07.2010, 04:38
Re: Simple question.. - by Kar - 13.07.2010, 04:52

Forum Jump:


Users browsing this thread: 2 Guest(s)