wird immernoch nicht angezeigt
Beiträge von rndy
-
-
Hallo, ich möchte einen Spieler eine Nachricht anzeigen lassen das er vom Hitman getötet wurde nur er bekommt keine Nachricht...
if(PlayerInfo[giveplayers][pHeadValue] > 0)
{
SendClientMessage(giveplayers,COLOR_YELLOW,"Du bist nun für 5 Minuten auf dem Friedhof weil ein Contract auf dich ausgesetzt war!");
}Der Contract Befehl
if(strcmp(cmd, "/contract", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /contract [playerid] [Betrag]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Benutze: /contract [playerid] [Betrag]");
return 1;
}
moneys = strval(tmp);
if(moneys < 5000 || moneys > 500000) { SendClientMessage(playerid, COLOR_GREY, " Die Vertragssumme muß mindestens $5000-, aber nicht mehr als $500000 betragen!"); return 1; }
if(PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "Du mußt mindestens Level 2 haben um einen Vertrag zu erstellen.");
return 1;
}
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Du kannst keine Verträge mit deiner eigenen Agentur abschließen!");
return 1;
}
else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Du kannst keine Verträge mit deiner eigenen Agentur abschließen!");
return 1;
}
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Du kannst dich nicht selber unter Vertrag nehmen!"); return 1; }
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
playermoney = GetPlayerMoney(playerid);
if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8)
{
SendClientMessage(playerid, COLOR_GREY, " Du kannst diesen Spieler nicht unter /contract nehmen da er Verbugt ist !");
return 1;
}
else
{
if (moneys > 0 && playermoney >= moneys)
{
GivePlayerMoney(playerid, (0 - moneys));
PlayerInfo[giveplayerid][pHeadValue]+=moneys;
format(string, sizeof(string), "%s möchte das ein Hitman die Zielperson: %s für $%d tötet.",sendername, giveplayer, moneys);
SendFamilyMessage(8, COLOR_YELLOW, string);
format(string, sizeof(string), "* Du hast einem Hitman den Auftrag zur Beseitigung von %s für $%d erteilt.",giveplayer, moneys);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du hast nicht genug Geld auf der Hand.");
}
}
}
}
else
{
format(string, sizeof(string), " %d ist kein Aktiver Spieler.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
} -
Achsoo
new giveplayer[MAX_PLAYER_NAME]; -
Also ich hab das einfach unter OnPlayerDeath gehauen
-
Guten Abend,
ich würde den Spieler bei seinem Tot gerne anzeigen lassen das er getötet wurde weil ein Auftrag auf ihn gesetzt wurde..
nur ich bekomme 4 Errors..
Zeile (6335) : Array-Index fehlt (bspw. Array[1], Name: "giveplayer")
Zeile (6337) : Falscher Variablentyp als Parameter (Parameter #1)
Zeile (6338) : Array-Index fehlt (bspw. Array[1], Name: "giveplayer")
Zeile (6339) : Array-Index fehlt (bspw. Array[1], Name: "giveplayer")Muss ich das nochmal neu definieren oder was muss ich tun?
if(PlayerInfo[giveplayer][pHeadValue] > 0)
{
SendClientMessage(giveplayer,COLOR_YELLOW,"Du bist nun auf dem Friedhof weil ein Auftrag auf dich gesetzt wurde. ( 5 Minuten )");
PlayerInfo[giveplayer][pFriedhof] = 1;
pIstTot[giveplayer] = 5;
} -
und wie wird der Timer jetzt resettet also das wenn ich wieder auf dem Friedhof komme das es wieder 180 Sekunden sind? also das der Timer sich zurücksetzt und erst wieder los geht wenn man wieder auf dem Friedhof ist
-
PlayerInfo[playerid][pFriedhofTime] = gettime() + 180;
forward FriedhofTimer();
public FriedhofTimer()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pFriedhof] == 1)
{
pIstTot[i] += 1;
}
if(PlayerInfo[i][pFriedhof] == 1 && pIstTot[i] == 3)//wielange man auf dem Friedhof ist
{
PlayerInfo[i][pFriedhof] = 0;
pIstTot[i] = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerSpawn(i);
SpawnPlayer(i);
DestroyPickup(TotenKopf[i]);
}
}
}
}if(PlayerInfo[playerid][pFriedhof] == 1 /*PlayerInfo[playerid][pTot] == 1 */&& PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0) // && PlayerInfo[playerid][pLevel] > 2
{
if(IsPlayerInFrac(playerid, 1))
{
SetPlayerColor(playerid,NAMECOLOR_LSCOP);
}
else
{
SetPlayerColor(playerid,TEAM_HIT_COLOR);
}
//TogglePlayerControllable(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,828.3665,-1102.0914,24.7891);//895.1538,-1119.9735,24.5863);
//SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
//SetPlayerCameraLookAt(playerid, 910.9415,-1102.5831,34.3235);
SetPlayerVirtualWorld(playerid, 20);
SetPlayerInterior(playerid, 0);
//FreezePlayer(playerid);
return 1;
}Also ich hoffe da ist was bei was du brauchst^^
-
Hi, wenn ich auf dem Friedhof lande ist die Zeit oft im - bereich
Wenn ich das erste mal sterbe ist sie noch normal danach ist sie im MInusWarum??
if(strcmp(cmd, "/friedhof", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFriedhof] >= 1)
{
//mini = PlayerInfo[playerid][pFriedhofTime]/60;
new chat[128];
new mini;
//mini = (PlayerInfo[playerid][pFriedhofTime]-gettime()); // +1
//new secs = PlayerInfo[playerid][pFriedhofTime]-gettime() - (mini*60);// - (mini*60); new secs = PlayerInfo[playerid][pFriedhofTime]-gettime();
new secs = PlayerInfo[playerid][pFriedhofTime]-gettime() - (mini*60);
format(chat, sizeof(chat), "Du bist noch für ca %d Sekunden auf dem Friedhof",secs);
//format(chat, sizeof(chat), "Du bist noch für ca %d Sekunden auf dem Friedhof",secs);//PlayerInfo[playerid][pFriedhofTime]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, chat);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht auf dem Friedhof.");
}
}
return 1;
} -
Hallo, ich würde gerne Kills in einem Log anzeigen lassen:
Was ich zurzeit gemacth habe: format(string,128,"Spieler %s hat den Spieler %s getötet mit einer: %s",playerid,killerid,reason);
Log("Tode.txt",string);
-> ist unter OnPlayerDeathWas im Log angezeigt wird:
-
Er scriptet was ganz anderes mit den Checkpoints als hier also weiß ich noch nichtmal wo die Checkpoints gemacht werden in meinem Script also bringt es mir irgendwie nix..
help!!
-
Hi ich habe 2 Probleme undzwar habe ich ein paar /enter Befehle zum ENTER Key hinzugefügt, nur man kann nicht überall rein? - beim Ammunation funktioniert es zum beispiel:
if(newkeys == KEY_SECONDARY_ATTACK) //KEY_SECONDARY_ATTACK
{
IsAtAutomat(playerid);
if(IsPlayerInRangeOfPoint(playerid,4.0,1462.4657,-1011.3002,26.8438))//LS Bank /enter
{
SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224/*246.5100,108.1086,1003.2188*/);
SetPlayerInterior(playerid,1);
SetPlayerFacingAngle(playerid,358.0127);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,1415.951171,-988.971191,1639.980224/*246.5100,108.1086,1003.2188*/))//LS Bank /exit
{
SetPlayerPos(playerid,1462.4657,-1011.3002,26.8438);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,182.0084);
SetPlayerVirtualWorld(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1369.0005,-1279.7201,13.5469))//Ammunation /enter
{
SetPlayerPos(playerid,286.148986, -40.644397,1001.515625);
SetPlayerInterior(playerid,1);
SetPlayerFacingAngle(playerid,92.3491);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,286.148986, -40.644397,1001.515625))//Ammunation /exit
{
SetPlayerPos(playerid,1369.0005,-1279.7201,13.5469);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,357.5767);
SetPlayerVirtualWorld(playerid, 0);
}
/*else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-347.8751,-1046.2157,59.8125)) //Hitman /enter
{
SetPlayerPos(playerid,1062.1240,2077.9614,10.8203);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman /exit
{
if(IsPlayerInRangeOfPoint(playerid,3.0,1062.1240,2077.9614,10.8203))
{
SetPlayerPos(playerid,-347.8751,-1046.2157,59.8125);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}*/
else if (IsPlayerInRangeOfPoint(playerid,4.0,238.7020,139.3295,1003.0234))//PD Garage /enter //ENTEREXIT
{
SetPlayerPos(playerid,1524.9292,-1677.8527,5.8906);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,2.5225);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,1524.9292,-1677.8527,5.8906))//PD Garagezurück /exit
{
SetPlayerPos(playerid,238.7020,139.3295,1003.0234);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid,1.8733);
SetPlayerVirtualWorld(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1480.9919,-1771.2096,18.7958))//Stadthalle /enter
{
SetPlayerPos(playerid,389.9180,173.6584,1008.3828);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid,92.3491);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,389.9180,173.6584,1008.3828))//Stadthalle /exit
{
SetPlayerPos(playerid,1480.9919,-1771.2096,18.7958);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,357.5767);
SetPlayerVirtualWorld(playerid, 0);
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,1554.9604,-1675.5541,16.1953))//LSPD /enter
{
SetPlayerPos(playerid,288.7177,167.1466,1007.1719);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid,358.7832);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,288.7177,167.1466,1007.1719))//LSPD /exit
{
SetPlayerPos(playerid,1554.9604,-1675.5541,16.1953);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,98.9059);
SetPlayerVirtualWorld(playerid, 0);
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,1042.7207,1010.6575,11.0000))//FBI /enter
{
if(IsACop(playerid) && PlayerInfo[playerid][pLeader] >= 1)
{
SetPlayerPos(playerid,246.8075,63.2147,1003.6406);
SetPlayerInterior(playerid,6);
SetPlayerFacingAngle(playerid,92.5225);
SetPlayerVirtualWorld(playerid, 0);
}
}
else if (IsPlayerInRangeOfPoint(playerid,4.0,246.8075,63.2147,1003.6406))//FBI /exit
{
if(IsACop(playerid) && PlayerInfo[playerid][pLeader] >= 1)
{
SetPlayerPos(playerid,1042.7207,1010.6575,11.0000);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,185.8733);
SetPlayerVirtualWorld(playerid, 0);
}
}
else if (IsPlayerInRangeOfPoint(playerid,3.0,1209.8247,-1749.9943,13.5937)) // KFZSTELLE /enter
{
SetPlayerPos(playerid,2324.419921,-1145.568359,1050.710083);
SetPlayerInterior(playerid,12);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_RED, "Du hast die KFZ Zulassungstelle betreten");
}
else if (IsPlayerInRangeOfPoint(playerid,3.0,2324.419921,-1145.568359,1050.710083)) //KFZSTELLE /exit
{
SetPlayerPos(playerid,1209.8247,-1749.9943,13.5937);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_RED, "Du hast die KFZ Zulassungstelle verlassen");
}
else if (IsPlayerInRangeOfPoint(playerid,3.0,1835.9020,-1682.5295,13.3704))
{
SetPlayerPos(playerid,493.390991,-22.722799,1000.679687);
SetPlayerInterior(playerid, 17);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_RED, "Du hast Alahmbra betreten");
}
else if (IsPlayerInRangeOfPoint(playerid,3.0,493.390991,-22.722799,1000.679687))
{
SetPlayerPos(playerid,1835.9020,-1682.5295,13.3704);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_RED, "Du hast Alahmbra verlassen");
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,811.4277,-1616.1138,13.5469))//BSSENTER
{
SetPlayerPos(playerid,457.304748,-88.428497,999.554687);
SetPlayerInterior(playerid, 4);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_GREEN,"Du hast den Burger Shot South betreten!");
}
else if(IsPlayerInRangeOfPoint(playerid,4.0,457.304748,-88.428497,999.554687))//BSSEXIT
{
SetPlayerPos(playerid,811.4277,-1616.1138,13.5469);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
//SendClientMessage(playerid,COLOR_GREEN, "Du hast den Burger Shot South verlassen!");
}
}Dann habe ich einmal das Problem das man in Roten Checkpoints warten muss bis man ein Interior betreten kann, ich würd das gern auch direkt mit der ENTER Taste einbinden..
new MultipleEnter[MAX_PLAYERS];
new CheckPointing[MAX_PLAYERS];
new CheckPointShown[MAX_PLAYERS];
new Float:CPs[][CPInfo] = {
{2397.8496,-1898.0288,13.5469,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
{2244.4800,-1664.0601,15.4766,0.0,0,"Los Santos",207.7380,-109.0200,1005.1328,0.0,15,"Binco",0},
//{2018.7988,1017.7705,996.8750,0.0,10,"San Fierro",-2721.0762,-320.6828,7.8438,0.0,0,"Casino",0},
{919.0751,-1252.1527,16.2109,0.0,0,"Los Santos",322.197998,302.497985,999.148437,0.0,5,"O-Amt",0},
{2166.2642,-1671.6808,15.0740,0.0,0,"Los Santos",318.6689,1114.9237,1083.8828,0.0,5,"Crackhoehle",0},
{2105.0862,-1806.3392,13.5547,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
//{2420.1899,-1509.8551,24.0000,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
//{1439.1178,-1665.7932,14.4905,0.0,0,"Los Santos",-25.9967,-187.6925,1003.5469,0.0,17,"24/7",0},//24/7 beim LSPD
//{1480.9576,-1770.6440,18.7958,5.7813,0,"Los Santos",389.0762,173.7839,1008.3828,90.1640,3,"Stadthalle",1},
//{1554.7671,-1674.8540,16.1953,84.0319,0,"Los Santos",239.2247,138.9361,1003.0234,359.2649,3,"3",0},
{1456.9403,-1138.0343,23.9763,0.0,0,"Los Santos",161.4873,-96.6564,1001.8047,0.0,18,"ZIP",0},
{1352.5164,-1758.8462,13.5078,0.0,0,"Los Santos",-26.5209,-57.5670,1003.5469,0.0,6,"24/7",0},
{479.5239,-1538.5399,19.3803,0.0,0,"Los Santos",207.0899,-139.3603,1003.5078,0.0,3,"Pro Labs",0},
//{811.6321,-1616.2617,13.5469,0.0,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
//{928.3706,-1352.8804,13.3438,0.0,0,"Los Santos",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
{999.9166,-919.8427,42.3281,0.0,0,"Los Santos",-27.1335,-30.9769,1003.5573,0.0,4,"24/7",0},
{1199.4064,-919.3890,43.1128,185.9694,0,"Los Santos",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{1315.3405,-898.1992,39.5781,0.0,0,"Los Santos",-30.7473,-91.1202,1003.5469,0.0,18,"24/7",0},
{203.2688,-202.9428,1.5781,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{1366.9592,248.6927,19.5669,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{2332.8704,74.9582,26.6210,0.0,0,"Los Santos",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{2228.9443,-1722.0851,13.5625,0.0,0,"Los Santos",772.3428,-4.1084,1000.7292,0.0,5,"Fitness Studio",0},
//{2020.4797,1007.0064,10.8203,0.0,0,"Las Venturas",2017.7937,1017.2736,996.8750,0.0,10,"Four Dragons Casino",0},
//{2195.9150,1676.6544,12.3672,0.0,0,"Las Venturas",2233.8779,1713.0963,1012.0313,0.0,1,"Caligolas Casino",0},
{2237.8357,1285.1769,10.8203,0.0,0,"Las Venturas",2217.0081,-1076.1227,1050.4844,0.0,1,"Pyramide",0},
{1966.1448,1622.2742,12.8680,0.0,0,"Las Venturas",2237.6992,-1080.0991,1049.0234,0.0,2,"Piratenschiff",0},
{2086.7605,2074.1689,11.0425,0.0,0,"Las Venturas",-100.2317,-24.1395,1000.7188,0.0,3,"Sex Shop",0},
//{2103.3669,2228.6326,11.0234,0.0,0,"Las Venturas",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
{2083.3455,2223.9021,11.0234,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{2247.8586,2397.4263,10.8203,0.0,0,"Las Venturas",-26.6043,-56.9045,1003.5469,0.0,6,"24/7",0},
{2471.7610,2034.2963,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{2366.0754,2071.2556,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{2452.2141,2064.1470,10.8203,0.0,0,"Las Venturas",-26.5812,-57.0460,1003.5469,0.0,6,"24/7",0},
{2373.9309,2167.3337,10.8248,0.0,0,"Las Venturas",2237.7859,-1079.9840,1049.0234,0.0,2,"Casino",0},
{2351.8687,2532.3311,10.8203,0.0,0,"Las Venturas",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{2170.4055,2795.6697,10.8203,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{1872.5800,2071.7961,11.0625,0.0,0,"Las Venturas",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
//{1462.2954,-1011.2205,26.8438,252.4664,0,"Los Santos",246.5083,107.8778,1003.2188,2.5901,10,"Los Santos Bank",1},//LS Bank
//{2195.5840,1677.3838,12.3672,87.7661,0,"Las Venturas",2233.8860,1712.6942,1011.9067,179.4858,1,"Caligulas Casino",1},
{2196.2441,1676.9348,12.3672,282.9798,0,"Las Venturas",2233.5127,1714.1404,1012.3544,191.3406,1,"Caligulas Casino",1},
{2187.7959,1696.3616,20.3906,94.6388,0,"Las Venturas",2156.7397,1598.2126,999.9716,102.9798,1,"Caligulas Casino",1},
{423.8142,2536.5027,16.1484,0.0,0,"Todesflughafen",420.4850,2535.5901,10.0000,0.0,10,"Todesflughafen",0},
{693.5278,1966.8389,5.5391,0.0,0,"Wueste",1212.0168,-26.5722,1000.9531,0.0,3,"Bordell",0},
{-1213.3425,1830.5543,41.9297,0.0,0,"Wueste",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
//{172.7686,1176.8818,14.7578,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
{-2356.3796,1008.1703,50.8984,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{-1912.0579,828.1326,35.2021,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
{-2336.4768,-166.8129,35.5547,0.0,0,"San Fierro",363.3161,-74.7201,1001.5078,294.5566,10,BURGER_SHOT_TEXT,5},
//{-1815.9301,617.8619,35.1719,0.0,0,"San Fierro",365.3238,-11.3925,1001.8516,350.3676,9,CLUCKIN_BELL_TEXT,5},
{-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5499,-132.7637,1001.4922,12.1297,5,PIZZA_TEXT,5},
{-1721.3677,1359.0906,7.1853,0.0,0,"San Fierro",372.5959,-132.1461,1001.4922,0.0,5,"Otto's Autohaus",0},
{-1808.2806,945.4167,24.8906,51.5222,0,"San Fierro",372.4701,-132.8026,1001.4922,179.2293,5," ",0},
{-1911.6249,828.5123,35.1719,137.0100,0,"San Fierro",363.2781,-74.7534,1001.5078,141.5494,10," ",0},
{-2356.5381,1008.1564,50.8984,270.3487,0,"San Fierro",363.3535,-74.5933,1001.5078,110.7977,10," ",0},
//{-1817.5028,618.2291,35.1719,358.6120,0,"San Fierro",364.9646,-10.9578,1001.8516,177.9759,9," ",0},
{1572.0428,-1336.5353,16.4844,304.8029,0,"Los Santos",1548.5587,-1364.8901,326.2109,85.4907,0,"Star Tower",0},
{1104.1304,-1449.0028,15.7969,180.2625,0,"Los Santos",-2240.468505,137.060440,1035.414062,0.2625,6,"Handyladen",0},
{1699.9642,-1170.1368,23.8281,358.9950,0,"Los Santos",833.7824,7.3484,1004.1797,0.2625,3,"Uhrenladen",0}};
bild: http://www.pic-upload.de/view-25360523/Unbenannt.png.html
-
Wie würde man das denn in Sekunden machen? - das es in Sekunden angezeigt wird und nicht in Minuten
-
jetzt steht da << Hitman User1 hat den Auftrag an 0 erfüllt und erhält: $%d >> xd
new name[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new string[256];
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
new fkasse = PlayerInfo[playerid][pHeadValue]/2;
FraktionsKasse[8] += fkasse;
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]/2);
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string,128,"<< Hitman %s hat den Auftrag an %d erfüllt und erhält: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
} -
Hallo, Ingame sollte stehen << Hitman 1 hat den Auftrag an 2 erfüllt und erhält: $5000 >> ( nur ein Beispiel)
Ingame steht aber: Hitman 1 hat den Auftrag an erfüllt und erhält 5000
Function OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME];
new string[256];
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
new fkasse = PlayerInfo[playerid][pHeadValue]/2;
FraktionsKasse[8] += fkasse;
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]/2);
format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und erhält: $%d >>",killer,playerid,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
}Danke schonmal
Ich benötige hier dringend hilfe - hier
-
Es ist ja nicht nur wegen diesem Befehl es passiert auch manchmal so.. das die leute die in der Nähe sind einen " Fake Ban " bekommen im Chat wird angezeigt Youre Banned from The server sind sie aber nicht..
-
Hab da noch ne Frage wenn ich /supmobil eingebe zieh ich mir eine Maske an und der user neben mir timeoutet und im Chat steht Youre Banned from the Server das ist aber nicht nur bei diesen Befehl sondern es passiert manchmal auchso
Jemand hat mir gesagt das könnt am Streamer liegen?
Ich brauche dringend Hilfe!!if(strcmp(cmd, "/supmobil", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1 ||PlayerInfo[playerid][pSupporter] >= 1)
{
if(supmobil[playerid] != 0)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(supmobil[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(supmobil[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
DestroyVehicle(supmobil[playerid]);
Delete3DTextLabel(suptext[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Fahrzeug vernichtet.");
supmobil[playerid] = 0;
}
else
{
ShowPlayerDialog(playerid, DIALOG_SUPMOBIL, DIALOG_STYLE_LIST, "Fahrzeug Auswahl", "1. Caddy\n2. Sultan\n3. Bus\n4. NRG\n5. Boot\n6. Heli\n7. Fahrzeug ID", "Auswahl", "Abbrechen");
}
}
else return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Admin.");
}
return 1;
}if(dialogid==DIALOG_SUPMOBIL)
{
if(response)
{
switch(listitem)
{
//Gas[supmobil[playerid]] = 1;
case 0: CreateSupCar(playerid, 457); // Caddy
case 1: CreateSupCar(playerid, 560); // Sultan
case 2: CreateSupCar(playerid, 431); // Bus
case 3: CreateSupCar(playerid, 522); // NRG
case 4: CreateSupCar(playerid, 452); // Boot
case 5: CreateSupCar(playerid, 487); // Heli
case 6:
{
if(PlayerInfo[playerid][pAdmin] >= 1) {
ShowPlayerDialog(playerid, DIALOG_SUPMOBILID, DIALOG_STYLE_INPUT, "Supporter Fahrzeug", "Fahrzeug ID eingeben:", "Erstellen", "Abbrechen");
}
else SendClientMessage(playerid, COLOR_WHITE, "Du bist dazu nicht berechtigt.");
}
}
}
}
if(dialogid==DIALOG_SUPMOBILID)
{
if(response) {
if(strval(inputtext)>=400&&strval(inputtext)<=611) {
if(strval(inputtext)==432||strval(inputtext)==425||strval(inputtext)==520) {
SendClientMessage(playerid, COLOR_WHITE, "So ist das aber nicht gedacht.");
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
SetPlayerPos(playerid,p[0],p[1],p[2]+200);
return 1;
}
new car = strval(inputtext);
CreateSupCar(playerid, car);
}
}
}
Ausserdem zieht er sich bei dem /supmobil befehl einfach eine maske an.
Wieso wird man vom Server gebannt und wie kann ich es ändern?Danke im Vorraus
Grüße
-
Es funktioniert! Geil danke.
-
Garnichts wird in der Console angezeigt nur: [kill] User1 kiled User2 Desert Eagle
-
ich schreibs nochmal:
new PlayerText:Payday[MAX_PLAYERS]; //ganz oben
//PlayerTextDrawSetString(playerid, Payday[playerid], "~r~PayDay: ~w~0~r~/~w~60");
//PlayerTextDrawShow(playerid,Payday[playerid]); //war bei OnPlayerConnect sollt ich ja ausklammernPlayerTextDrawHide(playerid,Payday[playerid]); // OnPlayerDisconnect
Payday[playerid] = CreatePlayerTextDraw(playerid, 8, 300, "~r~PayDay: ~w~%d~r~/~w~60");
PlayerTextDrawFont(playerid, Payday[playerid], 1);
PlayerTextDrawAlignment(playerid, Payday[playerid], 0);
PlayerTextDrawLetterSize(playerid, Payday[playerid], 0.500000, 0.999990);
PlayerTextDrawSetProportional(playerid, Payday[playerid], 1);
PlayerTextDrawSetShadow(playerid, Payday[playerid], 1);
PlayerTextDrawShow(playerid, Payday[playerid]);
for(new i=0; i < MAX_PLAYERS; i++)
{
new string[68];
format(string,sizeof(string),"~r~PayDay: ~w~%d~r~/~w~60",PlayerInfo[playerid][pPlayMinutes]);
PlayerTextDrawSetString(i, Payday[i], string);
} //OnPlayerSpawnif(PlayerInfo[i][pPlayMinutes] <= 60)
{
PlayerInfo[i][pPlayMinutes]++;new str[64];
format(str, sizeof(str), "~r~PayDay: ~w~%d~r~/~w~60", PlayerInfo[i][pPlayMinutes]);
PlayerTextDrawSetString(i, Payday[i], str);
}
if(PlayerInfo[i][pPlayMinutes] >= 60)
{
PlayerInfo[i][pPlayMinutes] = 0;
PlayerTextDrawSetString(i, Payday[i], "~r~PayDay: ~w~0~r~/~w~60"); // unter Timer1Das wars.
-
Der Timer ist immernoch buggy 1:113 steht da anstatt 1:13