3 posts in this topic

Команда spawn`a определенной машины по его ID. ID можно узнать стандартной командой /dl.

Спойлер

if(strcmp("/rescarid", cmdtext, true, 10) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, -1, "ИНФО: /rescarid [carid]");
    new carid = strval(tmp);
    SetVehicleToRespawn(carid);
    return 1;
}

 

 

Share this post


Link to post
Share on other sites

dc cmd pls


 

Share this post


Link to post
Share on other sites

@SenyaLi_e,

CMD:rescarid(playerid, params[]) {
    new vehicleID;

    if (sscanf(params, "d", vehicleID)) {
        return SendClientMessage(playerid, -1"ИНФО: /rescarid [carid]");
    }

    SetVehicleToRespawn(vehicleID);
    return true;
}

 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Леон111
      By Леон111
      Выдал админку через БД когда зашёл и прописал /alogin админа пропала в БД и в игре ничего не происходит!
      вот CMD