werden die auhc in tab menü uach weiß sein oder nicht ?
Beiträge von _xXIce_TeaXx_
-
-
Hallo leute
Ich wollte wissen wie mach ich das das die spieler auf der map nicht makiert werden und bei TAB menu alle die farbe weiß haben kann einer mit helfen ??
-
und dann soll ich das immer neu machen wenn ich ein neuen eingang amchen will
-
Hallo
Ich wollte gerne wissen wie das geht mit den eingängen das mann die mit enter betreten kann wer nett wenn jemand mir helfen könnte
MFG DeadCoast
-
if (strcmp(cmd, "/buygun", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du hast nicht genug Geld!");
return 1;
}
if(PlayerInfo[playerid][pGunLic] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du besitzt keinen Waffenschein, und kannst dir somit keine Waffen kaufen!");
return 1;
}
new gun;
new gunid[16];
new gunstring1[256];
new gunstring2[256];
new gunstring3[256];
new gunstring4[256];
new gunstring5[256];
new infostring[256];
new guncharge;
new ammocharge;
//new string[256];
new location = PlayerInfo[playerid][pLocal];
if(location == 99)
{
if(BizzInfo[location-99][bProds] <= 0)
{
GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
return 1;
}
new modw = 100;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "Benutzung: /buygun [waffenname] [munition]");
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
SendClientMessage(playerid, COLOR_BUYED,"*** Waffen & Munition ***");
SendClientMessage(playerid, COLOR_GRAD2,string);
format(gunstring1, 256, "Waffen: Fallschirm ($%d) Golfschläger ($%d) Schlagstock ($%d) Baseballschläger ($%d) Schaufel ($%d) Pool($%d)",
GunPrice[0][0]/100*modw,GunPrice[1][0]/100*modw,GunPrice[2][0]/100*modw,GunPrice[3][0]/100*modw,GunPrice[4] [0]/100*modw,GunPrice[5][0]/100*modw,GunPrice[6][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
format(gunstring2, 256, "Waffen: Violetter Dildo ($%d) Weißer Dildo ($%d) LangerweißerDildo ($%d) WeißerDildo2 ($%d) Blumen ($%d)",
GunPrice[7][0]/100*modw,GunPrice[8][0]/100*modw,GunPrice[9][0]/100*modw,GunPrice[10][0]/100*modw,GunPrice[11] [0]/100*modw,GunPrice[12][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
format(gunstring3, 256, "Waffen: SD-Pistole ($%d) Deagle ($%d) MP5 ($%d)",
GunPrice[13][0]/100*modw,GunPrice[14][0]/100*modw,GunPrice[15][0]/100*modw,GunPrice[16][0]/100*modw,GunPrice[17] [0]/100*modw,GunPrice[18][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
format(gunstring4, 256, "Waffen: Shotgun ($1850) AK47 ($3000) M4 ($3000) Sniper ($250000) Messer ($15000 - Ab Level 15)",
GunPrice[19][0]/100*modw,GunPrice[20][0]/100*modw,GunPrice[21][0]/100*modw,GunPrice[22][0]/100*modw,GunPrice[23][0]/100*modw,GunPrice[24][0]/100*modw,GunPrice[4][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
format(gunstring5, 256, "Waffen: Pistolen Munition ($%d) Shotgun Munition ($%d) MP5 Munition ($%d) AK47/M4 Munition ($%d) Sniper Munition ($%d)",
GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
return 1;
}
strmid(gunid, tmp, 0, strlen(cmdtext), 255);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "BENUTZUNG: /buygun [Waffe] [Munition]");
return 1;
}
new ammo = strval(tmp);
if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GRAD2, "Die Munition deiner Waffe muss zwischen 1 und 999 liegen!"); return 1; }
if (strcmp(gunid, "Fallschirm", true, strlen(gunid)) == 0)
{
gun = 46;
guncharge = GunPrice[0][0]/100*modw;
ammocharge = 0;
}
else if (strcmp(gunid, "Golfschläger", true, strlen(gunid)) == 0)
{
gun = 2; guncharge = GunPrice[1][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Schlagstock", true, strlen(gunid)) == 0)
{
gun = 3; guncharge = GunPrice[2][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Baseballschläger", true, strlen(gunid)) == 0)
{
gun = 5; guncharge = GunPrice[4][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Schaufel", true, strlen(gunid)) == 0)
{
gun = 6; guncharge = GunPrice[5][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0)
{
gun = 7; guncharge = GunPrice[6][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Violetter Dildo", true, strlen(gunid)) == 0)
{
gun = 10; guncharge = GunPrice[7][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Weißer Dildo", true, strlen(gunid)) == 0)
{
gun = 11; guncharge = GunPrice[8][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "langerweißerdildo", true, strlen(gunid)) == 0)
{
gun = 12; guncharge = GunPrice[9][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "weißerdildo2", true, strlen(gunid)) == 0)
{
gun = 13; guncharge = GunPrice[10][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Blumen", true, strlen(gunid)) == 0)
{
gun = 14; guncharge = GunPrice[11][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0)
{
gun = 15; guncharge = GunPrice[12][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "SD-Pistole", true, strlen(gunid)) == 0)
{
gun = 23; guncharge = GunPrice[13][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
}
else if (strcmp(gunid, "Deagle", true, strlen(gunid)) == 0)
{
gun = 24; guncharge = GunPrice[15][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
}
else if (strcmp(gunid, "MP5", true, strlen(gunid)) == 0)
{
gun = 29; guncharge = GunPrice[18][0]/100*modw; ammocharge = GunPrice[27][0]*ammo;
}
else if (strcmp(gunid, "Shotgun", true, strlen(gunid)) == 0)
{
gun = 25; guncharge = GunPrice[19][0]/100*modw; ammocharge = GunPrice[26][0]*ammo;
}
else if (strcmp(gunid, "AK47", true, strlen(gunid)) == 0)
{
gun = 30; guncharge = GunPrice[22][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
}
else if (strcmp(gunid, "M4", true, strlen(gunid)) == 0)
{
gun = 31; guncharge = GunPrice[23][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
}
else if (strcmp(gunid, "Sniper", true, strlen(gunid)) == 0)
{
gun = 34; guncharge = GunPrice[24][0]/100*modw; ammocharge = GunPrice[29][0]*ammo;
}
else if(strcmp(gunid,"Messer",true,strlen(gunid)) == 0)
{
gun = 4; guncharge = GunPrice[4][0]/100*modw; ammocharge = GunPrice[4][0]*ammo;
}
else
{
SendClientMessage(playerid, COLOR_GRAD6, "Ladenbesitzer: Ich habe noch nie von dieser Waffe gehört.");
return 1;
}
if((guncharge+ammocharge) > GetPlayerMoney(playerid))
{
format(infostring, 256, "Dir fehlen $%d!",guncharge+ammocharge);
SendClientMessage(playerid, COLOR_GRAD3, infostring);
return 1;
}
if(GetPlayerMoney(playerid) < (guncharge+ammocharge))
{
SendClientMessage(playerid, COLOR_GRAD2, "Das funktioniert nicht!");
return 1;
}
new payout = guncharge + ammocharge;
format(infostring, 256, "Du hast ein(e) %s mit %d Munition für $%d erworben.",gunid,ammo,payout);
SendClientMessage(playerid, COLOR_GRAD3, infostring);
SendClientMessage(playerid, COLOR_BUYED,"Vielen Dank für deinen Einkauf!");
GivePlayerMoney(playerid, - payout);
BizzInfo[location-99][bKasse] += payout;
BizzInfo[location-99][bProds]--;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GivePlayerWeapon(playerid, gun, ammo);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du befindest dich in keinem Ammunation/Waffenladen!");
return 1;
}
}
return 1;
} -
Bin neu hier auf sa-mp.de ka wie das geht
-
//Zeile 1734
dini_IntSet(filename, "PunkteTeamEins", Gangfightspeicherung[PunkteTeamEins])
//zeile 1737GetPlayerName(playerid, filename, sizeof(filename));
format(filename, sizeof(filename), "\Gangfight\Gangfights.txt", filename);
versuch mal das
MFG DEADCOAST -
Hallo, leute
ich hab mir ein /buygun geamcht aber das funkt bei mir nicht kann einer mirdabei mal helfen
*Hier Istd er Befehl *
if (strcmp(cmd, "/buygun", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du hast nicht genug Geld!");
return 1;
}
if(PlayerInfo[playerid][pGunLic] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du besitzt keinen Waffenschein, und kannst dir somit keine Waffen kaufen!");
return 1;
}
new gun;
new gunid[16];
new gunstring1[256];
new gunstring2[256];
new gunstring3[256];
new gunstring4[256];
new gunstring5[256];
new infostring[256];
new guncharge;
new ammocharge;
//new string[256];
new location = PlayerInfo[playerid][pLocal];
if(location == 99)
{
if(BizzInfo[location-99][bProds] <= 0)
{
GameTextForPlayer(playerid, "~r~Ausverkauft", 5000, 1);
return 1;
}
new modw = 100;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "Benutzung: /buygun [waffenname] [munition]");
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
SendClientMessage(playerid, COLOR_BUYED,"*** Waffen & Munition ***");
SendClientMessage(playerid, COLOR_GRAD2,string);
format(gunstring1, 256, "Waffen: Fallschirm ($%d) Golfschläger ($%d) Schlagstock ($%d) Baseballschläger ($%d) Schaufel ($%d) Pool($%d)",
GunPrice[0][0]/100*modw,GunPrice[1][0]/100*modw,GunPrice[2][0]/100*modw,GunPrice[3][0]/100*modw,GunPrice[4] [0]/100*modw,GunPrice[5][0]/100*modw,GunPrice[6][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
format(gunstring2, 256, "Waffen: Violetter Dildo ($%d) Weißer Dildo ($%d) LangerweißerDildo ($%d) WeißerDildo2 ($%d) Blumen ($%d)",
GunPrice[7][0]/100*modw,GunPrice[8][0]/100*modw,GunPrice[9][0]/100*modw,GunPrice[10][0]/100*modw,GunPrice[11] [0]/100*modw,GunPrice[12][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
format(gunstring3, 256, "Waffen: SD-Pistole ($%d) Deagle ($%d) MP5 ($%d)",
GunPrice[13][0]/100*modw,GunPrice[14][0]/100*modw,GunPrice[15][0]/100*modw,GunPrice[16][0]/100*modw,GunPrice[17] [0]/100*modw,GunPrice[18][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
format(gunstring4, 256, "Waffen: Shotgun ($1850) AK47 ($3000) M4 ($3000) Sniper ($250000) Messer ($15000 - Ab Level 15)",
GunPrice[19][0]/100*modw,GunPrice[20][0]/100*modw,GunPrice[21][0]/100*modw,GunPrice[22][0]/100*modw,GunPrice[23][0]/100*modw,GunPrice[24][0]/100*modw,GunPrice[4][0]/100*modw);
SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
format(gunstring5, 256, "Waffen: Pistolen Munition ($%d) Shotgun Munition ($%d) MP5 Munition ($%d) AK47/M4 Munition ($%d) Sniper Munition ($%d)",
GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
return 1;
}
strmid(gunid, tmp, 0, strlen(cmdtext), 255);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "BENUTZUNG: /buygun [Waffe] [Munition]");
return 1;
}
new ammo = strval(tmp);
if(ammo < 1 ammo > 999) { SendClientMessage(playerid, COLOR_GRAD2, "Die Munition deiner Waffe muss zwischen 1 und 999 liegen!"); return 1; }
if (strcmp(gunid, "Fallschirm", true, strlen(gunid)) == 0)
{
gun = 46;
guncharge = GunPrice[0][0]/100*modw;
ammocharge = 0;
}
else if (strcmp(gunid, "Golfschläger", true, strlen(gunid)) == 0)
{
gun = 2; guncharge = GunPrice[1][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Schlagstock", true, strlen(gunid)) == 0)
{
gun = 3; guncharge = GunPrice[2][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Baseballschläger", true, strlen(gunid)) == 0)
{
gun = 5; guncharge = GunPrice[4][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Schaufel", true, strlen(gunid)) == 0)
{
gun = 6; guncharge = GunPrice[5][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0)
{
gun = 7; guncharge = GunPrice[6][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Violetter Dildo", true, strlen(gunid)) == 0)
{
gun = 10; guncharge = GunPrice[7][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Weißer Dildo", true, strlen(gunid)) == 0)
{
gun = 11; guncharge = GunPrice[8][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "langerweißerdildo", true, strlen(gunid)) == 0)
{
gun = 12; guncharge = GunPrice[9][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "weißerdildo2", true, strlen(gunid)) == 0)
{
gun = 13; guncharge = GunPrice[10][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "Blumen", true, strlen(gunid)) == 0)
{
gun = 14; guncharge = GunPrice[11][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0)
{
gun = 15; guncharge = GunPrice[12][0]/100*modw; ammocharge = 0;
}
else if (strcmp(gunid, "SD-Pistole", true, strlen(gunid)) == 0)
{
gun = 23; guncharge = GunPrice[13][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
}
else if (strcmp(gunid, "Deagle", true, strlen(gunid)) == 0)
{
gun = 24; guncharge = GunPrice[15][0]/100*modw; ammocharge = GunPrice[25][0]*ammo;
}
else if (strcmp(gunid, "MP5", true, strlen(gunid)) == 0)
{
gun = 29; guncharge = GunPrice[18][0]/100*modw; ammocharge = GunPrice[27][0]*ammo;
}
else if (strcmp(gunid, "Shotgun", true, strlen(gunid)) == 0)
{
gun = 25; guncharge = GunPrice[19][0]/100*modw; ammocharge = GunPrice[26][0]*ammo;
}
else if (strcmp(gunid, "AK47", true, strlen(gunid)) == 0)
{
gun = 30; guncharge = GunPrice[22][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
}
else if (strcmp(gunid, "M4", true, strlen(gunid)) == 0)
{
gun = 31; guncharge = GunPrice[23][0]/100*modw; ammocharge = GunPrice[28][0]*ammo;
}
else if (strcmp(gunid, "Sniper", true, strlen(gunid)) == 0)
{
gun = 34; guncharge = GunPrice[24][0]/100*modw; ammocharge = GunPrice[29][0]*ammo;
}
else if(strcmp(gunid,"Messer",true,strlen(gunid)) == 0)
{
gun = 4; guncharge = GunPrice[4][0]/100*modw; ammocharge = GunPrice[4][0]*ammo;
}
else
{
SendClientMessage(playerid, COLOR_GRAD6, "Ladenbesitzer: Ich habe noch nie von dieser Waffe gehört.");
return 1;
}
if((guncharge+ammocharge) > GetPlayerMoney(playerid))
{
format(infostring, 256, "Dir fehlen $%d!",guncharge+ammocharge);
SendClientMessage(playerid, COLOR_GRAD3, infostring);
return 1;
}
if(GetPlayerMoney(playerid) < (guncharge+ammocharge))
{
SendClientMessage(playerid, COLOR_GRAD2, "Das funktioniert nicht!");
return 1;
}
new payout = guncharge + ammocharge;
format(infostring, 256, "Du hast ein(e) %s mit %d Munition für $%d erworben.",gunid,ammo,payout);
SendClientMessage(playerid, COLOR_GRAD3, infostring);
SendClientMessage(playerid, COLOR_BUYED,"Vielen Dank für deinen Einkauf!");
GivePlayerMoney(playerid, - payout);
BizzInfo[location-99][bKasse] += payout;
BizzInfo[location-99][bProds]--;
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GivePlayerWeapon(playerid, gun, ammo);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Du befindest dich in keinem Ammunation/Waffenladen!");
return 1;
}
}
return 1;
}MFG DeadCoast