Enter Exit System
#1

I have just following problem I have written just cmd to provide from Interiors (" Dynamic Interior system ")
he provides to me the Interiors, however, always for ID 0 would be nice, however, if to me somebody, besides would help.... would increase to me with sachen help
Excuse for my bad English.


Код:
if(strcmp(cmdb, "/newint", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pAdmin] < 5)
			{
			    SendClientMessage(playerid, COLOR_GREY, "* Du darfst diesen Befehl nicht benutzen!");
				return 1;
			}
			new tmp2[256],tmp3[256],tmp4[256],tmp5[256];
   			tmp2 = strtok(cmdtext, CommandIDX);
            new Bla = strval(tmp2);
   			tmp3 = strtok(cmdtext, CommandIDX);
            new id2 = strval(tmp3);
            new FraktionsID = strval(tmp4);
            tmp4 = strtok(cmdtext, CommandIDX);
            new On‌ly = strval(tmp5);
            tmp5 = strtok(cmdtext, CommandIDX);
            if(!strlen(tmp2))
            {
		 		SendClientMessage(playerid, COLOR_WHITE, " Verwendung: /newint [EnterText] [interiorid] [GanOnly 0 = Nein Ja = 1] [Fraktions ID]");
				return 1;
			}
            if(!strlen(tmp3))
            {
                if(id2 < 1 || id2 > 62) { SendClientMessage(playerid, COLOR_WHITE, "[ERROR]: InteriorID's 1-42."); return 1; }
    			SendClientMessage(playerid, COLOR_WHITE, " Verwendung: /newint [EnterText] [interiorid] [GanOnly 0 = Nein Ja = 1] [Fraktions ID]");
				return 1;
			}
			if(!strlen(tmp4))
            {
                if(FraktionsID < 1 || FraktionsID > 25) { SendClientMessage(playerid, COLOR_WHITE, "Gib bitte Eine gьltige Fraktions Id Ein!"); return 1; }
    			SendClientMessage(playerid, COLOR_WHITE, " Verwendung: /newint [EnterText] [interiorid] [GanOnly 0 = Nein Ja = 1] [Fraktions ID]");
				return 1;
			}
			if(!strlen(tmp5))
            {
                if(Only < 0 || Only > 2) { SendClientMessage(playerid, COLOR_WHITE, "0 = Nicht Fьr Gang 1 = Fьr Gang"); return 1; }
    			SendClientMessage(playerid, COLOR_WHITE, " Verwendung: /newint [EnterText] [interiorid] [GanOnly 0 = Nein Ja = 1] [Fraktions ID]");
				return 1;
			}
			else
   			{
   			    for (new proplev = 0; proplev < MAX_INTS; proplev++) 
      			{
				    new Float:X,Float:Y,Float:Z;
				    GetPlayerPos(playerid,X,Y,Z);
					EnterExitSys[proplev][EEnterx] = X;
					EnterExitSys[proplev][EEntery] = Y;
					EnterExitSys[proplev][EEnterz] = Z;
					EnterExitSys[proplev][EnterText] = Bla;
					EnterExitSys[proplev][GangOnly] = Only;
					EnterExitSys[proplev][GangID] = FraktionsID;
					Update3DInt(proplev);
     				InterIor(playerid,id2,proplev);//wдhlt das Interior Aus 
     				CreateDynamicPickup(1559, 23, X, Y, Z);
 					OnPropUpdate();
					return 1;
				}
			}
		}
		return 1;
	}
}
Many thanks in advance MFG 60Cent
Reply
#2

I thank very much for "no help!"
Reply
#3

Sorry, but we can't understand what you mean if you wrote that with ****** Translator :P
** Schreibs mir auf Deutsch, dann schau ich morgen frьh mal drьber was dein Problem ist.

Padarom
Reply
#4

Also ich habe das problem das er mir kein neues interior Erstellt "Neue Zeile in der CFG" Es wird einfach die Erste Zeile Ersetzt ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)