Abend..
Ich Habe igendwie mein Wetter System Geschrottet
kann mir wehr helfen?
Ich kann mein wetter Nicht Mehr über /rcon weather [wetterid] ändern
und ich habe nur kack wetter auffem server nebel regen nebel regen rotes bild usw
hir alles von mein wetter system
Code
new gGoodWeather[20] = {0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,17,18,30,31,32};
new gBadWeather[4] = {3,8,11,16};
new gUglyWeather[6] = {7,9,12,30,31,32};
new w1;
new w2;
new w3;
new w4;
Code
new reason = random(3);
switch(reason) {
case 0:
{
w1 = gBadWeather[random(4)];
w2 = gBadWeather[random(4)];
w3 = gBadWeather[random(4)];
w4 = gBadWeather[random(4)];
}
case 1:
{
w1 = gUglyWeather[random(6)];
w2 = gUglyWeather[random(6)];
w3 = gUglyWeather[random(6)];
w4 = gUglyWeather[random(6)];
}
case 2:
{
w1 = gGoodWeather[random(20)];
w2 = gGoodWeather[random(20)];
w3 = gGoodWeather[random(20)];
w4 = gGoodWeather[random(20)];
}
}
Alles anzeigen
Code
new reason = random(3);
switch(reason) {
case 0:
{
w1 = gBadWeather[random(4)];
w2 = gBadWeather[random(4)];
w3 = gBadWeather[random(4)];
}
case 1:
{
w1 = gUglyWeather[random(6)];
w2 = gUglyWeather[random(6)];
w3 = gUglyWeather[random(6)];
}
case 2:
{
w1 = gGoodWeather[random(20)];
w2 = gGoodWeather[random(20)];
w3 = gGoodWeather[random(20)];
}
}
return 1;
}
Alles anzeigen
Code
public invehicle()
{
new Float:wpx[MAX_PLAYERS], Float:wpy[MAX_PLAYERS], Float:wpz[MAX_PLAYERS];
new s[64];
new id;
new i;
for (new p = 0; p < MAX_PLAYERS; p++) {
if(!IsPlayerNPC(p)) {
SetPlayerScore(p, money[p]);
SetPlayerDrunkLevel(p, GetPlayerDrunkLevel(p) - 50);
if(GetPlayerDrunkLevel(p) < 0) SetPlayerDrunkLevel(p, 0);
GetPlayerPos(p, wpx[p],wpy[p],wpz[p]);
if (wpy[p] >= 0 && wpx[p] >= 0){SetPlayerWeather(p, w1);}
if (wpy[p] <= 0 && wpx[p] <= 0){SetPlayerWeather(p, w2);}
if (wpy[p] <= 0 && wpx[p] >= 0){SetPlayerWeather(p, w3);}
if (wpy[p] >= 0 && wpx[p] <= 0){SetPlayerWeather(p, w4);}
Alles anzeigen
Bitte Um Hilfe