Question

Просьба перевести команду со стандартного движка на dc_cmd
 

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

1 answer to this question

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

 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content