Slava_Rogozhkin
Умник
HTML:
else if(strcmp(cmd, "/amusic", true) == 0)
{
if(PlayerInfo[playerid][playerAdminka] < 11) return true;
new Float:X, Float:Y, Float:Z;
tmp = strcharsplit(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE, " Введите: /amusic [радиус] [ссылка]");
new Float:Distance = strval(tmp);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid,COLOR_WHITE, " Введите: /amusic [радиус] [ссылка]");
GetPlayerPos(playerid, X, Y, Z);
MusicU[4] = Distance; MusicU[1] = X; MusicU[2] = Y; MusicU[3] = Z; UMusic = result; Music2 = true;
return true;
}
Пожалуйста помогите с меня + ики
