Moze pomoc za jednu admin komandu

Započeo Kiki_Radeon, Jun 11, 2010, 10:21:40 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ev ja cijelo jutro nesto kemijam xd AL NEIDE, ako mi moze neko pomoc napravio sam pomicne rampe i sve to, i ja bi da mi to bude admin komanda,
od aminda lvl 1337 jel imate kakav kod da mi date? ili nesto slicno hvala !

Eo ti kod;
if(PlayerInfo[playerid][pAdmin] >= 1337)
Ovo 1337 to stavis koji oces admin lvl!
Poslednja Izmena: Jun 11, 2010, 10:26:38 PRE PODNE od Sponzo



Citat: Sponzo poslato Jun 11, 2010, 10:26:08 PRE PODNE
Eo ti kod;
if(PlayerInfo[playerid][pAdmin] >= 1337)
Ovo 1337 to stavis koji oces admin lvl!
//-------------------Adminrampa---------------------------

    if(strcmp(cmd,"/rampadole",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1337))
    {
MoveObject(Adminrampa, -2309.7255859375, -180.20703125, 35.3203125,500,7.000);
SendClientMessage(playerid, COLOR_GREEN, "Spustate rampu.");
}
else
{
SendClientMessage(playerid, COLOR_RED, " Nisi admin.");
}
return 1;
}
if(strcmp(cmd,"/rampagore",true)==0)
{
    if(PlayerInfo[playerid][pAdmin] >= 1337)
    {
MoveObject(Adminrampa, -2309.7258300781, -180.20785522461, 35.3203125,7.000 );

SendClientMessage(playerid, COLOR_GREEN, "Podizete rampu.");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Nisi admin.");
}
return 1;
}


evo to neradi.. ja sam to ubacio tamo di i za organiztacije

evo ovako ti je kod mene za pd:

ovo dodaj tamo di su ti ostali new-ovi:

new Pd_rampa;

ovo pod ongamemodeinit:

Pd_rampa = CreateObject(968, 1544.684937, -1630.868042, 12.991069, 0.0000, 270.6186, 270.0000); // stavi svoje kordinate

ovo pod onplayercommandtext:

//-------------------------------------------[Rampa]--------------------------------

if(strcmp(cmd,"/pdo",true)==0)
{
      if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
    {
SetObjectRot(Pd_rampa,  0.0000, 359.1406, 270.0000);
SendClientMessage(playerid, COLOR_GREEN, "Podižete pd rampu.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nene.");
}
return 1;
}
if(strcmp(cmd,"/pdc",true)==0)
{
      if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
    {
SetObjectRot(Pd_rampa, 0.0000, 270.6186, 270.0000);
SendClientMessage(playerid, COLOR_GREEN, "Spustate pd rampu.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nene.");
}
return 1;
}


samo umjesto ovoga:

    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)

stavi ono [pAdmin]...



pogrijesio si u tome da si stavio MoveObject,a ne SetObjectRot...

Citat: Sam ãƒ,, poslato Jun 11, 2010, 19:22:16 POSLE PODNE
pogrijesio si u tome da si stavio MoveObject,a ne SetObjectRot...

pa u komandi je setobjectrot btw kad kucam komandu automacki je otvorena tj ne kreče se poako kako sredit to

napravi timere kojima ces pomicati dio po dio...