1 post in this topic

Команда техпасспорт.

Спойлер

#define NetotID    SendClientMessage(playerid,COLOR_GRAD2, "Неверый ID игрока.")
#define NoPlayerConnect  SendClientMessage(playerid,COLOR_GRAD2, "Этот игрок не подключен к серверу.")

 

Спойлер

if(strcmp(cmd, "/tehpass", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Ты должен быть автомобиле.");
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "[Подсказка]: /tehpass [id]");
    giveplayerid = ReturnUser(tmp);
    if(!IsPlayerConnected(giveplayerid)) return NoPlayerConnect;
    if(giveplayerid == INVALID_PLAYER_ID) return NetotID;
    if(!ProxDetectorS(8.0, playerid, giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD2, "Игрок находится не рядом с вами.");
    new carid = GetPlayerVehicleID(playerid), str[128], sctring[238], stringacc[64];
        format(str,sizeof(str),"{33CCFF}Зарегестрировано на: {ffffff}%s\n",CarInfo[GetRealID(carid)][cOwner]);
        strcat(sctring,str);
        format(str,sizeof(str),"{33CCFF}Марка транспорта: {ffffff}%s\n",VehiclesName[CarInfo[GetRealID(carid)][cMod]-400]);
        strcat(sctring,str);
        format(str,sizeof(str),"{33CCFF}Гос. рег. знак: {ffffff}%s\n",CarInfo[GetRealID(carid)][cNumber]);
        strcat(sctring,str);
        format(stringacc,sizeof(stringacc),"{33CCFF}ПТС Гражданина: {ffffff}%s",sendername);
        ShowPlayerDialog(giveplayerid,4567,DIALOG_STYLE_MSGBOX,stringacc,sctring,"Закрыть","");
    format(str, sizeof(str), "%s показал ПТС игроку %s.", sendername, giveplayer);
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
}

 

 

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Loading...
Sign in to follow this  
Followers 0