"Trebam nešto" - tema

Započeo BloodMaster, Oktobar 02, 2011, 12:01:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 6 gostiju pregledaju ovu temu.

Trebam komande /aodg i /godg, ove komande sluze za odgovaranje igracima na /report i /pomoc!


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Evo ti u zcmd pa ti sebi preimuj i radi šta hoćeš:

/apm:COMMAND:apm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /apm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   Admini samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Admin  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x33CCFFAA, string);
        printf("Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x33CCFFAA, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  0x33CCFFAA, string);
}
return 1;
}


/gmpm:COMMAND:gmpm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /gmpm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pGameMaster] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   GameMasteri samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "GameMaster  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x4CA5D2FF, string);
        printf("GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x4CA5D2FF, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  COLOR_TOMATO, string);
}
return 1;
}


Citat: |DE| Dane poslato Januar 12, 2012, 15:38:35 POSLE PODNE
Evo ti u zcmd pa ti sebi preimuj i radi šta hoćeš:

/apm:COMMAND:apm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /apm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   Admini samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Admin  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x33CCFFAA, string);
        printf("Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x33CCFFAA, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  0x33CCFFAA, string);
}
return 1;
}


/gmpm:COMMAND:gmpm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /gmpm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pGameMaster] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   GameMasteri samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "GameMaster  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x4CA5D2FF, string);
        printf("GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x4CA5D2FF, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  COLOR_TOMATO, string);
}
return 1;
}


Ja hocu /aodg i /godg, a ne /apm i /gpm :S


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Citat: isk0 poslato Januar 12, 2012, 15:41:01 POSLE PODNE
Citat: |DE| Dane poslato Januar 12, 2012, 15:38:35 POSLE PODNE
Evo ti u zcmd pa ti sebi preimuj i radi šta hoćeš:

/apm:COMMAND:apm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /apm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   Admini samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Admin  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x33CCFFAA, string);
        printf("Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "Admin %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x33CCFFAA, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  0x33CCFFAA, string);
}
return 1;
}


/gmpm:COMMAND:gmpm(playerid, params[])
{

new result[64];
new string[128];
if (sscanf(params, "us", giveplayerid, result)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Pisi:  /gmpm [id igraca/Dio imena] [text]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Krivi id");
if (PlayerInfo[playerid][pGameMaster] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "   GameMasteri samo!");
else
{
        new giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "GameMaster  %s(ID: %d) kaze: %s", sendername, playerid, result);
SendClientMessage(giveplayerid, 0x4CA5D2FF, string);
        printf("GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        format(string, sizeof(string), "GameMaster %s(ID: %d) salje igracu %s(ID: %d): %s", sendername, playerid, giveplayer, giveplayerid, result);
        SendAdminMessage(0x4CA5D2FF, string);
format(string, sizeof(string), "Poruka poslana igracu %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid,  COLOR_TOMATO, string);
}
return 1;
}


Ja hocu /aodg i /godg, a ne /apm i /gpm :S


Jesil ti uredu ili ne??  ???  Pa to ti je ta komanda samo preimenuj ovo Å¡ta je apm u aodg i eto lol

Trebam komandu /specplayer /recon da mi znači promatra igrača šta radi i to u zcmd...

Trazim bm_moneytd.inc  imam veliki problem sa tim  kada zavrsim skriptu pritisnem F5 izbacimi 9 erora
C:\Users\Administrator\Desktop\NIKOLA\MR v4.0 SRB\pawno\include\bm_moneytd.inc(48) : warning 201: redefinition of constant/macro (symbol "GivePlayerMoney")
C:\BSF.pwn(6660) : warning 235: public function lacks forward declaration (symbol "JB_OnPlayerEnterRaceCheckpoint")
C:\BSF.pwn(15942) : error 025: function heading differs from prototype
C:\BSF.pwn(15943) : error 021: symbol already defined: "strtok"
C:\BSF.pwn(15958) : error 047: array sizes do not match, or destination array is too small
C:\BSF.pwn(25118) : error 047: array sizes do not match, or destination array is too small
C:\BSF.pwn(25156) : error 047: array sizes do not match, or destination array is too small
C:\BSF.pwn(25194) : error 047: array sizes do not match, or destination array is too small
C:\BSF.pwn(26533) : error 047: array sizes do not match, or destination array is too small
C:\BSF.pwn(28394) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\BSF.pwn(30819) : error 017: undefined symbol "JB_GivePlayerMoney"
C:\BSF.pwn(30863) : error 017: undefined symbol "JB_GetPlayerMoney"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.



kada ga izbrisem izbacimi samo 1 eror ako mi moze neko reci zbog cega to

C:\BSF.pwn(19) : fatal error 100: cannot read from file: "bm_moneytd"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.




Eagle Luka

Kako da promenim swapn u nekoj organizaciji ,ime i ko je vlasnik kola ?

Kako da spremim recimo sva vozila u jedan fajl, npr kao sto se spremaju u gf, na taj nacin, trebam to, hvala :)

Registrirajte se na Pecalicu! (Rewards1 & Prizerebel tip stranice samo sto je ova za Balkan!) Molim preko ovog linka :)

Speedo & Fuel by #marcus.

Što se tiče skriptanja mogu vam pomoći sa manjim problemima, za nešto veliko me ne ispitujte!


Trebam komandu /spec i /endspec koja nije u zcmd!


Village's Roleplay USKORO...

Village's Roleplay USKORO...

Trebam komandu war ili zcmd ili strcmp.
Hvala Unapred

kako ovaj error rjesit pomozite plizz
D:\Balkan_Underground\Balkan Underground\pawno\include\streamer.inc(193) : error 017: undefined symbol "MAPICON_LOCAL"

Eagle Luka

Odes u start i u run i kopiras to i srediti se error ,ja mislim,tako aj resavam

Citat: isk0 poslato Januar 13, 2012, 12:17:44 POSLE PODNE
Trebam komandu /spec i /endspec koja nije u zcmd!
definisi


new Spectate[MAX_PLAYERS];


Pod OnPlayerConnect


Spectate[playerid] = 255;


   if(strcmp(cmd, "/recon", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] < 0 && PlayerInfo[playerid][pGmaster] < 0)
        {
SendClientMessage(playerid, COLOR_YELLOW, "Niste admin ili GameMaster!");
return 1;
        }
if(Spectate[playerid] == 255)
{
GetPlayerPos(playerid, Unspec[playerid][sPx], Unspec[playerid][sPy], Unspec[playerid][sPz]);
Unspec[playerid][sPint] = PlayerInfo[playerid][pInt];
Unspec[playerid][sLocal] = PlayerInfo[playerid][pLocal];
PlayerInfo[playerid][pLocal] = 255;
gTeam[playerid] = 0;
}
tmp = strtok(cmdtext, idx);
if(strcmp("off", tmp, true, strlen(tmp)) == 0)
{
Spectate[playerid] = 253;
GameTextForPlayer(playerid, "~w~                Recon~n~~r~                Ugasen", 5000, 6);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
    if(giveplayerid != INVALID_PLAYER_ID)
    {
        Spectate[playerid] = giveplayerid;
new Float:health;
GetPlayerHealth(Spectate[playerid], health);
GetPlayerName(Spectate[playerid], giveplayer, sizeof(giveplayer));
new cash =  GetPlayerMoney(Spectate[playerid]);
format(string, sizeof(string), "Recon: (%d) %s $%d H:%.0f",Spectate[playerid],giveplayer,cash,health);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Meta nije dostupna.");
}
}
return 1;
}


Mislim da je to to.. ovo sam uzo iz neke stare scripte koju sam editao... ako nesto nije OK posalji mi PM