-TechLand Xperia (CLRP Edit)
Detaljan opis problema:
Evo ovako, ako mi neko moze staviti ove dole komande da ih mogu koristiti samo clanovi i lideri organizacija id: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17.
Varijable su pMember i pLeader
Pokusavao sam nesto, ali nece uopste da mi compile, sigurno negde promasim zagrade... Proveravao sam al nista jbg. Ne radi.
Dio skripte:
if (strcmp("/neon", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,1034.4844,-1103.4556,23.8281))
{
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "","Plava\nZelena\nZuta\nBela\nRoza\nCrvena\nBrisanje Neonki","Postavi","Odustani");
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Niste kod Mehanicara!"); }
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}) Moras biti u vozilu!");
}
return 1;
}
if(strcmp("/tune",cmd,true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Niste vozac!");
return 1;
}
if(PlayerToPoint(5.0,playerid,999.4434,-1089.2135,23.8349) || PlayerToPoint(5.0,playerid,2796.8567,-1545.5630,10.9719) || PlayerToPoint(5.0,playerid,2821.4963,-1544.4954,10.9469) || PlayerToPoint(5.0,playerid,2412.4746,-1474.0664,23.9837) || PlayerToPoint(5.0,playerid,1872.3068,-1868.5648,13.5870))
{
CarmodDialog(playerid);
return 1;
}
else { SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Moras bit u Tuning Garazama!!"); }
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Morate biti u vozilo!");
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Izvinjavam se za ono, i hvala.
