Könnte mir bitte einer ein Beispiel scripten wäre voll nett.
Also am besten das ich nicht für jedes einzelne "Lspdcar" oder andere car alles einzelt machen muss
Beiträge von Black_Pain
-
-
Guten Tag
Ich wollte fragen wie kann ich das einstellen das nur bestimmte Leute in bestimmte autos können?
Das heißt zb nur Lspd(Cops) können in Lspd Cruiser
Wäre nett wenn mir einer das verraten könnte möglichst das mit einem Befehl mehrere "Lspdcars" genommen werden
Danke
Gruß
Black_Pain -
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Willkommen, %s\nDieser Nickname ist registriert\nDu kannst dich jetzt einloggen:",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
}
else
{
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Willkommen, %s\nDu hast keinen Account.\nBitte registrieren:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Register","Exit");
}
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
else
{
for(new i=0;i<1000;i++)
{
if(classid == i)
{
GameTextForPlayer(playerid,"~g~>> ~r~Skinauswahl ~g~<<",3500,6);
}
}
}
return false;/*if (classid == 1)
{
format(string, sizeof(string), "~y~> ~p~Police Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 2)
{
format(string, sizeof(string), "~y~> ~p~FBI/ATF Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 3)
{
format(string, sizeof(string), "~y~> ~p~National Guard General ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 4)
{
format(string, sizeof(string), "~y~> ~p~Fire/Ambulance Chief ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 5)
{
format(string, sizeof(string), "~y~> ~p~Espana Drogas Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 6)
{
format(string, sizeof(string), "~y~> ~p~Luciano Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 7)
{
format(string, sizeof(string), "~y~> ~p~Mayor ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 8)
{
format(string, sizeof(string), "~y~> ~p~Hitman Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 9)
{
format(string, sizeof(string), "~y~> ~p~News Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 10)
{
format(string, sizeof(string), "~y~> ~p~Taxi Cab Company Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 11)
{
format(string, sizeof(string), "~y~> ~p~License Faction Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 14)
{
format(string, sizeof(string), "~y~> ~p~Nortenos Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 15)
{
format(string, sizeof(string), "~y~> ~p~Grove Street Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else if (classid == 16)
{
format(string, sizeof(string), "~y~> ~p~Jefferson Saints Leader ~y~< ~n~Leaders only!");
GameTextForPlayer(playerid,string,3500,6);
}
else
{
format(string, sizeof(string), "~y~> ~g~Civilian ~y~<");
GameTextForPlayer(playerid,string,3500,6);
}
SetPlayerTeamFromClass(playerid,classid);
SetupPlayerForClassSelection(playerid);
return 1;*/
} -
Hallo Zusammen
Ich wollte mal fragen ob mir einer vielleicht ein Tacho scripten kann was so aussieht.
Meins ist irgendwie verbuggt.
Danke
Gruß
Black_Pain -
Hallo Zusammen
Ich habe ein Problem mit meiner Skinauswahl
Also wenn ich mich einlogge habe ich keine Skinauswahl
Wenn ich F4 drücke erscheint auch keine Skinauswahl.
Ich habe schon die Camera und den Spawn für die Skinauswahl eingestellt
Ich habe bei "OnPlayerRequestClass" geschrieben
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1257.6588,-1270.0730,13.5072);
SetPlayerCameraPos(playerid,1257.5156,-1265.1091,13.3531);
SetPlayerCameraLookAt(playerid,1257.6588,-1270.0730,13.5072);if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
Dann wollte ich bestimmte Ckarakters haben dann habe ich unter "OnGameModeInit"
// Grove Street
AddPlayerClass(105,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(106,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(107,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Ballas
AddPlayerClass(102,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(103,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(104,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Varrios Los Aztecas
AddPlayerClass(114,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(115,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(116,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Los Santos Vagos
AddPlayerClass(108,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(109,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(110,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Yakuza
AddPlayerClass(102,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(102,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(102,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Triaden
AddPlayerClass(117,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(118,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(120,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// LCN
AddPlayerClass(124,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(125,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(126,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(127,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Biker BoysAddPlayerClass(247,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(248,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(254,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Regierung
AddPlayerClass(165,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(166,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// LSPD
AddPlayerClass(282,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(283,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(288,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(284,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// SFPD
AddPlayerClass(280,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(281,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// FBI
AddPlayerClass(285,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(286,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Bundeswehr
AddPlayerClass(287,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
// Notarzt
AddPlayerClass(274,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(275,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //
AddPlayerClass(276,1257.6588,-1270.0730,13.5072,4.3143,0,0,0,0,0,0); //Es klappt irgendwie nicht wenn ich ins F4 menü komme kann ich kein < Spawn oder > klicken sie funken nicht.
ICh würde mich freuen wenn mir einer dabei helfen könnte.
WEnn es nocht geht hätte ich gerne ein Skinsystem wie bei Grp, spricht zb das nur die in der Lspd sind das sie nur Lspd skins nehmen können oder Ballas nur Ballas skins.
DAnke
Gruß
Black_Pain