We shouldn’t even have to ask for it. |
public OnPlayerConnect(playerid)
{
AdminDuznost[playerid] = 0;
PosaoVMZagreb[playerid] = 0;
Jetpack[playerid] = 0;
Oprema[playerid] = 0;
KupujeDrogu[playerid] = 0;
KoristiDrogu[playerid] = 0;
Logovan[playerid] = 0;
new string[200];
new namestring = strfind(ImeIgraca(playerid), "_", true);
if(namestring == -1 && PlayerInfo[playerid][pAdmin] != 6)
{
SCM, "[ E ] | {FFFFFF}Kikovani ste sa servera zbog NON-RP imena. Ime mora biti u formatu Ime_Prezime, naprimjer Marko_Markovic.");
format(string, sizeof(string),"[ E ] | {FFFFFF}Igrac %s nije koristio RP ime i zbog toga je kikovan sa servera.", ImeIgraca(playerid));
SCMTA(ZUTA, string);
SetTimerEx("ImeKick", 500, false, "i", playerid);
return 1;
}
RemoveBuildingForPlayer(playerid, 1261, 1408.6563, -1407.1719, 28.6250, 0.25);
RemoveBuildingForPlayer(playerid, 4239, 1407.9063, -1407.3984, 33.9844, 0.25);
RemoveBuildingForPlayer(playerid, 1267, 1408.6563, -1407.1719, 28.6250, 0.25);
RemoveBuildingForPlayer(playerid, 4757, 1404.1406, -1309.1328, 43.2891, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1371.4688, -1268.2188, 37.3359, 0.25);
RemoveBuildingForPlayer(playerid, 4736, 1404.1406, -1309.1328, 43.2891, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1371.4688, -1268.2188, 37.3359, 0.25);
RemoveBuildingForPlayer(playerid, 4588, 1405.8750, -1254.7891, 34.0000, 0.25);
RemoveBuildingForPlayer(playerid, 691, 1144.0781, -2076.3750, 68.1016, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1137.5078, -2070.0313, 71.7813, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1138.4375, -2003.9141, 71.7813, 0.25);
RemoveBuildingForPlayer(playerid, 691, 1208.6484, -2000.0703, 67.3906, 0.25);
RemoveBuildingForPlayer(playerid, 691, 1205.2734, -1987.8203, 63.7891, 0.25);
RemoveBuildingForPlayer(playerid, 1388, 1238.3750, -1258.2813, 57.2031, 0.25);
RemoveBuildingForPlayer(playerid, 1391, 1238.3750, -1258.2734, 44.6641, 0.25);
SetPlayerColor(playerid, -1);
SetTimer("KonektPoruke", 1000, false);
return 1;
}
SCM, "[ E ] | {FFFFFF}Kikovani ste sa servera zbog NON-RP imena. Ime mora biti u formatu Ime_Prezime, naprimjer Marko_Markovic.");
{
JeliLogovan
SPD(playerid, DIALOG_DONACIJE, DIALOG_STYLE_LIST, "{FFDF2D}Donacije servera:", "{FFFFFF}Level\nNovac\nImanje\nOrganizacija\nNick\n{FFDF2D}POMOC", "{ffdf2d}Izaberi", "{ffdf2d}Zatvori");
return 1;
}
case DIALOG_DONACIJE:
{
if(response)
{
switch(listitem)
{
case 0:
{
SPD(playerid, DIALOG_DLEVEL, DIALOG_STYLE_MSGBOX, "{FFDF2D}Donacije - Level", "{ffd2fd}| LEVEL |\n{FFFFFF}Cijena: {ffdf2d}1 Level = 0.50 KM", "{ffdf2d}Zatvori", "");
}
case 1:
{
SPD(playerid, DIALOG_DNOVAC, DIALOG_STYLE_MSGBOX, "{FFDF2D}Donacije - Novac", "{ffdf2d}| NOVAC |\n{ffffff}Cijena: {ffdf2d}$100.000 = 1 KM", "{ffdf2d}Zatvori", "");
}
case 2:
{
SPD(playerid, DIALOG_DIMANJE, DIALOG_STYLE_MSGBOX, "{FFDF2D}Donacije - Privatno imanje", "{ffdf2d}| PRIVATNO IMANJE |\n{ffdf2d}| (mapano) |\n{ffffff}Cijena: 2 KM (+ vase ime napisano na znaku)", "{ffdf2d}Zatvori", "");
}
case 3:
{
}
case 4:
{
SPD(playerid, DIALOG_DNICK, DIALOG_STYLE_MSGBOX, "{FFDF2D}Donacije - Specijalan nick", "{ffdf2d}| SPECIJALAN NICK |\n{ffffff}Cijena: {ffdf2d}1.50 KM", "{FFDF2D}Zatvori", "");
}
case 5:
{
SPD(playerid, DIALOG_DPOMOC, DIALOG_STYLE_MSGBOX, "{FFDF2D}Donacije - Pomoc", "{ffdf2d}| POMOC |\n{FFFFFF}Napisite poruku na ******** profil 'Elliot Alderson' sa porukom '{ffdf2d}DONACIJA'", "{ffdf2d}Zatvori", "");
}
}
}
return 1;
}
Hi, I created a small roleplay gamemode, just to test things out and stuff, and when I compile it I don't get any errors or warnings, but, for example, I set up a welcome message so when you connect to the server you get a message like this: "Welcome to the server!", but the problem is that everyone else on the server gets it, and it's the same thing with dialogs, when I should get a dialog displayed everyone else gets it.
I hope you understand. If any blocks of code are needed just tell me. |