Započeo ¤EG¤Ovca.ini
•23. Jun 2013.• Zaključano[Pomoc] isPlayerAdmin error
305
pregleda
5
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
343
Postovi:
47
Teme:
Pridružio se:Jun 2011
23. Jun 2013.
Skripta koju koristim: APB
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:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
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):
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,343
Postovi:
84
Teme:
Pridružio se:Okt. 2012
23. Jun 2013.
Probaj sad
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
{
if (PlayerInfo >= 1)
{
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;
}Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,208
Postovi:
44
Teme:
Pridružio se:Jan. 2012
23. Jun 2013.
boca reko je isplayeradmin a ne padmin
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
{
if(!IsPlayerAdmin(playerid))
{
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;
}Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
343
Postovi:
47
Teme:
Pridružio se:Jun 2011
Kingpin
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
1,343
Postovi:
84
Teme:
Pridružio se:Okt. 2012
23. Jun 2013.
Crazyn3ss wrote on June 23, 2013, 11:49 am:
boca reko je isplayeradmin a ne padmin
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
{
if(!IsPlayerAdmin(playerid))
{
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;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava