al3xqq Posted June 8, 2013 Posted June 8, 2013 Am filterscript-ul de masini personale Im_Bank. Intrebarea mea este cum pot sa introduc masinile personale care se creeaza cu filter-ulin comanda /rac ?Si mai am una, cum sa fac comanda /jetpack ? Adica ce e neinregula cu aceasta ?[pawn]if(strcmp(cmd, "/jetpack", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 3) { if(IsPlayerConnected(playerid)) { SetPlayerSpecialAction(playerid,2); SendClientMessage(playerid, COLOR_GREEN, "%s a folosit comanda /jetpack !"); } else { SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda"); } } }[/pawn] A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
BuBu Posted June 9, 2013 Posted June 9, 2013 Incearca sa inlocuiesti cu [glow=red,2,300]SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);[/glow] sau daca nu spunene exact ce iti zice cand dai /jetpack? nu til dau sa ce.Iar /rac sa mearga la toata masinile selecteaza de la ce idcar pana la ce idcar de exemplu de la 1 pana la 50 sau cum ai tu. (/oldcar in game or /dll)
leon Posted June 9, 2013 Posted June 9, 2013 if(strcmp(cmd, "/jetpack", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 3) { SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK); SendClientMessage(playerid, COLOR_GREEN, "%s a folosit comanda /jetpack !"); } else { SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda"); } } }
al3xqq Posted June 9, 2013 Author Posted June 9, 2013 Am urmatoare eroare la comanda asta:In loc sa`mi dea bani scrie de multe ori Ai primit bani de la Administratori ![pawn]if(strcmp(cmd, "/moneyforall", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); tmp = strtok(cmdtext, idx); if(PlayerInfo[playerid][pAdmin] >= 1338) { if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "Usage: /moneyforall [amount]"); return 1; } new money; money = strval(tmp); if(IsPlayerConnected(playerid)) { if ( money >= 99999999) { SendClientMessage(playerid, COLOR_RED, "ERROR : Too much moneys!"); return 1; } for(new i=0; i < MAX_PLAYERS; i++) { PlayerInfo[pCash] += money; SendClientMessageToAll(COLOR_LIGHTGREEN, "Ai primit bani de la Administratori."); } } else { SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!"); } } else { SendClientMessage(playerid, COLOR_ORANGE, "DENIED: {FFFFFF}Nu ai acces sa folosesti aceasta comanda."); } return 1; }[/pawn] A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
Gireada Posted June 9, 2013 Posted June 9, 2013 SendClientMessage(i,COLOR_LIGHTGREEN, "Ai primit bani de la Administratori.");
al3xqq Posted June 9, 2013 Author Posted June 9, 2013 Mersi ! A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
al3xqq Posted June 9, 2013 Author Posted June 9, 2013 A mers !Acum am alta problema ... Am un fs de fast event (reaction test) care daca castigi iti da banii si ti i`a inapoi dupa aceea deoarece comanda GivePlayerMoney este blocata de JunkBuster. Am incercat sa o inlocuiesc dar imi da undentified symbol. Ce e de facut ? A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
Gireada Posted June 9, 2013 Posted June 9, 2013 Ai incercat cu #define GivePlayerMoney JB_GivePlayerMoney sau cum e de la junkbuster?
al3xqq Posted June 10, 2013 Author Posted June 10, 2013 Fast event`ul nu este inclus in GM. Este sub forma de fs. A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
Sm0ke Posted June 10, 2013 Posted June 10, 2013 Pai includel in GM si definestel, dar cred ca poti sa il definesti si in FS.
al3xqq Posted June 10, 2013 Author Posted June 10, 2013 I`am dat define cum a zis gireada dar tot la fel face ... Si sincer nu stiu unde sa pun niste chestii din fs in gm ... de ex de la filterscriptinit pun la ongameinit ? si de la onfilterscriptexit unde pun ? :( A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
KAPSu Posted June 10, 2013 Posted June 10, 2013 Poftim aici /jetpack[pawn]if(strcmp(cmd, "/jetpack", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1338) { SendClientMessage(playerid, 0xFF7F50AA, "{33FF33}You have jetpack now!"); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK); return 1; } else { SendClientMessage(playerid,0xFF0000AA,"You can't use this command."); return 1; } } }[/pawn] Cel din urma va fi cel dintâi.
KAPSu Posted June 10, 2013 Posted June 10, 2013 Si pentru bani:[pawn]if(strcmp(cmd, "/givemoneyall", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1338) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /givemoneyall (money)"); return 1; } new number; number = strval(tmp); for(new i = 0; i <= MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new playercash = PlayerInfo[pAccount]; PlayerInfo[pAccount] = playercash + number; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Administrator %s give %d$ to all players who are online", sendername, number); SendClientMessage(i,COLOR_LIGHTBLUE,string); } } return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda !"); } }[/pawn] Cel din urma va fi cel dintâi.
al3xqq Posted June 11, 2013 Author Posted June 11, 2013 Esti marf? frate !Cum pot face cand cuiva i se execut comanda GivePlayerMoney sa scrie intr-un log. Motiv ? Pentru ca am un gm vulnerabil la hack`uri si am si un hack care functioneaza pe el :|Sau recomanda`ti`mi un fs de anti cheats [dar dupa ce il introduc sa imi mearga vechile comenzi de dat bani] A fost usor sa te iubim ..., Acum e imposibil sa te uitam !
Question
al3xqq
Am filterscript-ul de masini personale Im_Bank. Intrebarea mea este cum pot sa introduc masinile personale care se creeaza cu filter-ul
in comanda /rac ?
Si mai am una, cum sa fac comanda /jetpack ? Adica ce e neinregula cu aceasta ?
[pawn]if(strcmp(cmd, "/jetpack", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if(IsPlayerConnected(playerid))
{
SetPlayerSpecialAction(playerid,2);
SendClientMessage(playerid, COLOR_GREEN, "%s a folosit comanda /jetpack !");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nu esti autorizat sa folosesti aceasta comanda");
}
}
}[/pawn]
A fost usor sa te iubim ...,
Acum e imposibil sa te uitam !
14 answers to this question
Recommended Posts