[Pomoc]Ulaz u prostorije

Započeo ...Nikola..., Jun 17, 2011, 15:36:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: FactionGame
Detaljan opis problema: Kako da namestim da se svuda umesto /enter,F,ENTER i /exit ulazi npr. na SPACE
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /


A kako da namestim ono kada je admin ili gamemaster onduty da mu pise iznad glave NE ometaj! ako neko zna da li moze da mi da i pokaze gde da ubacim to.

Edit: Treba mi malo vise pomoci oko ovoga za ulazak neznam de se nalaze kodovi ti gde da promenim enter sa space mozda malo objasnjenja
Poslednja Izmena: Jun 17, 2011, 16:08:05 POSLE PODNE od Boki Pro

daj komande za duznost admina i gmova

if (strcmp(cmd,"/aon",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_RED );
                SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}
//------------------------------------------------------------------------------------------------
if (strcmp(cmd,"/aoff",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_WHITE );
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}


if (strcmp(cmd,"/gmon",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, Zelena );
                SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
                //format( sMsg, sizeof( sMsg ), "*GameMaster %s je sada na duznosti.", sMsg );
                //SendClientMessageToAll( COLOR_LIGHTRED, sMsg );
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}
//------------------------------------------------------------------------------------------------
if (strcmp(cmd,"/gmoff",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_WHITE );
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
                //format( sMsg, sizeof( sMsg ), "*GameMaster %s vise nije na duznosti.", sMsg );
                //SendClientMessageToAll( COLOR_LIGHTRED, sMsg );
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}

To radis sa 3dtextlabelom Evo jedan primjer :
          DutyLabel[playerid] = Create3DTextLabel("Admin na dužnosti \n Ne Napadaj",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);

a za brisanje koristis Delete3DTextLabel(DutyLabel[playerid]);
eto pa si pravi kako zelis da ti bude.
takoder moras jos new Text3D:DutyLabel[MAX_PLAYERS];
Poslednja Izmena: Jun 17, 2011, 17:00:52 POSLE PODNE od [LYG] $--L84S--$

evo ti aon
#define SVETLOPLAVA 0x33CCFFAA



if (strcmp(cmd,"/aon",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_RED );
                SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
        SetPlayerChatBubble(playerid, "Na Admin duznosti!", 0x33CCFFAA, 100.0, 10*60*60*1000);
                SetPlayerColor(playerid, SVETLOPLAVA); // blue
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}
//------------------------------------------------------------------------------------------------
if (strcmp(cmd,"/aoff",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_WHITE );
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
                SetPlayerChatBubble(playerid, "", 0xFFFFFFAA,0,0);
    SetPlayerColor(playerid, 0xFFFFFF00); // bijela
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}

Citat: Outlawz poslato Jun 17, 2011, 16:56:38 POSLE PODNE
evo ti aon
#define SVETLOPLAVA 0x33CCFFAA



if (strcmp(cmd,"/aon",true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
               new sMsg[ 128 ];
               GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
               SetPlayerColor( playerid, COLOR_RED );
               SetPlayerHealth(playerid, 250);
       SetPlayerArmour(playerid, 250);
       SetPlayerChatBubble(playerid, "Na Admin duznosti!", 0x33CCFFAA, 100.0, 10*60*60*1000);
               SetPlayerColor(playerid, SVETLOPLAVA); // blue
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}
//------------------------------------------------------------------------------------------------
if (strcmp(cmd,"/aoff",true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
               new sMsg[ 128 ];
               GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
               SetPlayerColor( playerid, COLOR_WHITE );
               SetPlayerHealth(playerid, 100);
               SetPlayerArmour(playerid, 0);
               SetPlayerChatBubble(playerid, "", 0xFFFFFFAA,0,0);
  SetPlayerColor(playerid, 0xFFFFFF00); // bijela
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}

Zasto to ??
lakse je sa dutylabel :
Citat: [LYG] $--L84S--$ poslato Jun 17, 2011, 16:53:56 POSLE PODNE
To radis sa 3dtextlabelom Evo jedan primjer :
Citat: [LYG] $--L84S--$ poslato Jun 17, 2011, 16:53:56 POSLE PODNE
To radis sa 3dtextlabelom Evo jedan primjer :
          DutyLabel[playerid] = Create3DTextLabel("Admin na dužnosti \n Ne Napadaj",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);

a za brisanje koristis Delete3DTextLabel(DutyLabel[playerid]);
eto pa si pravi kako zelis da ti bude.
takoder moras jos new Text3D:DutyLabel[MAX_PLAYERS];
Poslednja Izmena: Jun 17, 2011, 17:01:12 POSLE PODNE od [LYG] $--L84S--$

Evo ti onda
new Text3D:DutyLabel[MAX_PLAYERS];

if (strcmp(cmd,"/aon",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_RED );
                SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
        DutyLabel[playerid] = Create3DTextLabel("Admin na dužnosti \n Ne Napadaj",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}
//------------------------------------------------------------------------------------------------
if (strcmp(cmd,"/aoff",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, COLOR_WHITE );
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
                Delete3DTextLabel(DutyLabel[playerid]);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Niste ovlasteni da koristite ovu komandu!");
}
}
return 1;
}