Beiträge von [M]rGamer
-
-
also
ich habs jez ma getestet und es funzzt un bei mir siehts so aus:cmd:
Pawn-Quelltext
1
2
3
4
5
if (strcmp(cmdtext, "/neon", true)==0){
if (IsPlayerInAnyVehicle(playerid)){
ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Wähle eine Farbe", "Blau\nRot\nGruen\nWeis\nPink\nGelb\nNeon ausbauen", "Select", "Cancel");
}else{SendClientMessage(playerid, rot, "Du bist in keinem Auto");}
return 1;}Pawn-Quelltext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
if(dialogid == neondialog)
{
if(response)
{
if(listitem == 0)
{
//Blau
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
}
if(listitem == 1)
{
//Rot
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}}
if(listitem == 2)
{
//Gruen
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}}
if(listitem == 3)
{
//Weis
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
}
if(listitem == 4)
{
//pink
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
}
if(listitem == 5)
{
//Gelb
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
}
if(listitem == 6)
{
//remove neon
DestroyObject(GetPVarInt(playerid, "neon"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon1"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon2"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon3"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon4"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon5"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon6"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon7"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon8"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon9"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon10"));
DeletePVar(playerid, "Status");
DestroyObject(GetPVarInt(playerid, "neon11"));
DeletePVar(playerid, "Status");
SendClientMessage(playerid, 0xFFFFFFAA, "Alle Neons ausgebaut");
if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -300);}
}
}
}danke geht bei mir auch
-
ich sage es mal so ich finde es eigentlich ganz net mal ne ausgefallenere idee aber vllt. das nächste mal ein bisschen größer aber ansonsten top
#edit amsonsten verbessert in ansonsten
-
man war das gail gestern aben
und natürlich hoffe ich das ihr alle gut ins neue Jahr gerutscht seid
ohne ein Rakete etc. abbekommen zu haben#edit und natürlich hoffe ich das ihr alle gut ins neue Jahr gerutscht seid
ohne ein Rakete etc. abbekommen zu haben -
omg wieso willst du das script obwohl es schon so viele haben?!
macht kein sinn weil eigentlich will man ein script das noch keiner aufm server hatt -
hört sich gut an
aber ich bekomme immer einen server crash -
ich habe da das problem bei mir geht es einfach nicht immer wenn ich dann ingame gehe dann steht da nur z.B. der Bus aber da ist kein NPC drin wieso?
-
Die überschrift sagt eigentlich schon alles ich habe ne frage was ist der unterschied zwischen Godfather und dem anderen (weis nicht mehr wie das heist)
-
Ich habs mal getestet und muss sagen:
Mit Motorad:9/10
Mit auto: 8/10