Detaljan opis problema: Ja pokusavam staviti da ovu komandu mogu samo kao admin ali mi nece i nece i izbacuje error pa jel bi netko od vas pro skriptera znao rjesit da mi stavi ovu komandu pod IsPlayerAdmin :3
Dio skripte:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
{
if(CreatingTextO == false)
{
TextAlign = 1,
Text = "Example",
FontName = "Arial",
TextColor = HexToInt("0xFFFF8200"),
BackgColor = HexToInt("0xFF000000");
CreatingTextO = true, ShowMainMenu(playerid);
GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));
Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);
SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
FontSize, UseBold, TextColor, BackgColor, TextAlign);
SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
} else { ShowMainMenu(playerid); }
return 1;
}
if(!strcmp(cmdtext, "/test", true))
{
new MiObjeto = CreateObject(19353, 1965.633911, 1343.049560, 15.874607, 0.000000, 0.000000, 179.142486);
SetObjectMaterialText(MiObjeto, "Example", 0, 50, "Arial", 24, 0, -32256, -16777216, 1);
return 1;
}
return 0;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
