К дефайнам:
PHP код:
#define MAXACTORS               1000 // Максимум актеров
#define D_DYNAMIC                  21
#define D_ACTORCREATE           22 

К enum:
PHP код:
new TotalActors;
enum ainfo
{
    
aID,
    
aSkinModel,
    
Float:aFloat[4],
    
Text3D:aLabel,
    
aLabelText
}
new 
ActorInfo[MAXACTORS][ainfo]; 
В OnGameModeInit
PHP код:
mysql_function_query(MYSQL_CONNECT"SELECT * FROM `actors`"true"LoadActors",""); 
В конец мода:

PHP код:
publicsLoadActors()
{
    new 
currenttime GetTickCount();
    new 
temp[50];
    new 
rows,fields;
    
cache_get_data(rowsfields);
    for(new 
0rowsi++)
    {
        
cache_get_field_content(i"ID"temp),     ActorInfo[i][aID] = strval(temp);
        
cache_get_field_content(i"Skinid"temp), ActorInfo[i][aSkinModel] = strval(temp);
        
cache_get_field_content(i"Float"temp),     sscanf(temp"p<|>a<f>[4]"ActorInfo[i][aFloat]);
        
cache_get_field_content(i"Text"temp),   strmid(ActorInfo[i][aLabelText], temp0strlen(temp), 32);

        
CreateActor(ActorInfo[i][aSkinModel], ActorInfo[i][aFloat][0], ActorInfo[i][aFloat][1], ActorInfo[i][aFloat][2], ActorInfo[i][aFloat][3]);
        if(
strcmp(ActorInfo[i][aLabelText], "None"true)) ActorInfo[i][aLabel] = CreateDynamic3DTextLabel(ActorInfo[i][aLabelText],0xFFFFFFFFActorInfo[i][aFloat][0], ActorInfo[i][aFloat][1], ActorInfo[i][aFloat][2]+1.1,3.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,1);
        
TotalActors++;
    }
    new 
time GetTickCount() -currenttime;
    
printf("<console log> - Актеров было загружено %i за %i мс",TotalActors,time);
    return 
true;

К командам:

PHP код:
CMD:actorpos(playeridparams[])
{
    new 
Float:get[4];
    if(
PlayerInfo[playerid][pAdmin] < 5) return true;
    
//if(GetPVarInt(playerid, "CreateActor") == 2) return SendClientMessage(playerid, COLOR_GREY, "
    
if(GetPVarInt(playerid"CreateActor") != 1) return SendClientMessage(playeridCOLOR_GREY"Вы не в режиме создания бота!");
    
GetPlayerPos(playeridget[0], get[1], get[2]);
    
GetPlayerFacingAngle(playeridget[3]);
    
SetPVarFloat(playerid"acFloatX"get[0]);
    
SetPVarFloat(playerid"acFloatY"get[1]);
    
SetPVarFloat(playerid"acFloatZ"get[2]);
    
SetPVarFloat(playerid"acRotation"get[3]);
    
ShowPlayerDialog(playeridD_ACTORCREATEDIALOG_STYLE_INPUT"Выбрать""Выберите скин для персонажа и введите текст, который будет высвечиватся над ним\nNone - Нет текста\nПример: 5, Тест (Через запятую)""Создать""Отмена");
    return 
true;
}

CMD:dynamic(playerid)
{
    if(
PlayerInfo[playerid][pAdmin] < 5) return true;
    
ShowPlayerDialog(playeridD_DYNAMICDIALOG_STYLE_LIST"{779A3F}  Динамические функции""[1] Создать актёров""Выбрать""Отмена");
    return 
true;

В OnPlayerDialogResponse

PHP код:
        case D_DYNAMIC:
        {
            if(!
response) return true;
            switch(
listitem)
            {
                case 
0:
                {
                    if(
PlayerInfo[playerid][pAdmin] < 5) return true;
                    
ShowPlayerDialog(playeridD_ACTORCREATEDIALOG_STYLE_LIST"Выбрать""Создать бота""Выбрать""Отмена");
                }
            }
        }
        case 
D_ACTORCREATE:
        {
            if(!
response)
            {
                
SendClientMessage(playerid, -1"Вы отменили создание бота");
                
SetPVarInt(playerid"CreateActor"0);
                return 
true;
            }
            new 
skintext[32];
            if(!
response) return true;
            if(!
strlen(inputtext)) return ShowPlayerDialog(playeridD_ACTORCREATEDIALOG_STYLE_INPUT"Выбрать""Выберите скин для персонажа и введите текст, который будет высвечиваться над ним\nNone - Нет текста\nПример: 5, Тест""Создать""Отмена");
            if(
sscanf(inputtext"p<,>ds[32]"skintext)) return ShowPlayerDialog(playeridD_ACTORCREATEDIALOG_STYLE_INPUT"Выбрать""Выберите скин для персонажа и введите текст, который будет высвечиваться над ним\nNone - Нет текста\nПример: 5, Тест""Создать""Отмена");
            new 
query[500];
            
SendClientMessage(playeridCOLOR_GREY"Вы успешно создали бота");
            
format(querysizeof(query), "INSERT INTO `actors` (`Skinid`, `Float`, `Text`) VALUES ('%d', '%f|%f|%f|%f', '%s')"skinGetPVarFloat(playerid"acFloatX"), GetPVarFloat(playerid"acFloatY"), GetPVarFloat(playerid"acFloatZ"), GetPVarFloat(playerid"acRotation"), text);
              
mysql_function_query(MYSQL_CONNECTqueryfalse"""");
            
mysql_function_query(MYSQL_CONNECT"SELECT * FROM `actors`"true"LoadActors","");
            
SetPVarInt(playerid"CreateActor"0);
            return 
true;
        } 
БД:

PHP код:
CREATE TABLE IF NOT EXISTS `actors` (
  `
IDint(11NOT NULL AUTO_INCREMENT,
  `
Skinidint(3NOT NULL,
  `
Floatvarchar(220NOT NULL,
  `
Textvarchar(32NOT NULL,
  
PRIMARY KEY (`ID`)
ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=