Enter Exit System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Enter Exit System (
/showthread.php?tid=207607)
Help Interior System -
xX60CentXx - 06.01.2011
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 Only = 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
AW: Enter Exit System -
xX60CentXx - 08.01.2011
I thank very much for "no help!"
Re: Enter Exit System -
Padarom - 08.01.2011
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
AW: Enter Exit System -
xX60CentXx - 08.01.2011
Also ich habe das problem das er mir kein neues interior Erstellt "Neue Zeile in der CFG" Es wird einfach die Erste Zeile Ersetzt ...