Gabster4Ever Posted March 12, 2011 Posted March 12, 2011 /* [FS] By HsY */ #include <a_samp> #define COLOR_ORANGE 0xFF9900AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define FILTERSCRIPT forward GateClose(); new bartataglia; new poarta; public OnFilterScriptInit() { poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0); bartataglia = CreateObject(988, 902.79235839844, -946.18060302734, 39.499565124512, 0, 0, 6); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/poartals", true)==0) { MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 2); SetTimer("GateClose", 8000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta,in 8 secunde poarta se va inchide"); GivePlayerMoney(playerid,0); return 1; } if (strcmp(cmdtext, "/bartataglia", true)==0) { MoveObject(bartataglia, 902.78308105469, -946.18634033203, 34.884086608887, 3); SetTimer("GateClose", 10000, 0); SendClientMessage(playerid, COLOR_ORANGE,"Ai deschis poarta spre bar"); GivePlayerMoney(playerid,0); return 1;} } public GateClose() { MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2); MoveObject (bartataglia,902.79235839844, -946.18060302734, 39.499565124512, 3); return 1; }D:\desk\xTEam\filterscripts\poarta.pwn(46) : warning 209: function "OnPlayerCommandText" should return a valuePawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Warning.
[RSD]TheBoss Posted March 12, 2011 Posted March 12, 2011 ma scuzi era altu asta e /* [FS] By HsY */ #include <a_samp> #define COLOR_ORANGE 0xFF9900AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define FILTERSCRIPT forward GateClose(); new bartataglia; new poarta; public OnFilterScriptInit() { poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0); bartataglia = CreateObject(988, 902.79235839844, -946.18060302734, 39.499565124512, 0, 0, 6); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/poartals", true)==0) { MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 2); SetTimer("GateClose", 8000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta,in 8 secunde poarta se va inchide"); GivePlayerMoney(playerid,0); return 1; } if (strcmp(cmdtext, "/bartataglia", true)==0) { MoveObject(bartataglia, 902.78308105469, -946.18634033203, 34.884086608887, 3); SetTimer("GateClose", 10000, 0); SendClientMessage(playerid, COLOR_ORANGE,"Ai deschis poarta spre bar"); GivePlayerMoney(playerid,0); return 1; } return 0; } public GateClose() { MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2); MoveObject (bartataglia,902.79235839844, -946.18060302734, 39.499565124512, 3); return 1; } incearca cum ti-am scris eu;) New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...
Gabster4Ever Posted March 12, 2011 Author Posted March 12, 2011 E tot aia da oricum sv merge si merge si comanda. Ma poti ajuca in alt scop? vreau sa fac pe harta sa apara siglele ca sa stie lumea unde e showroom si altetele si inca ceva cum fac sa se invarta iconitele alea cu pastila,i=informatii, casa aia verde si albastra etc ???
[RSD]TheBoss Posted March 12, 2011 Posted March 12, 2011 partea cu siglele incearca cu SetPlayerMapIcon(...)http://wiki.sa-mp.com/wiki/SetPlayerMapIconpune icone pe mapa astfel inkat playerul sa stie unde sunt locatile ..etc...iar la cealalt parte stai un pic sa-mi amintesc New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...
NeKeRm@N Posted March 12, 2011 Posted March 12, 2011 http://www.sa-mp.ro/forum/index.php/topic,7041.0.html uite aici un tutorial... sa apara siglele pe harta..
Gabster4Ever Posted March 12, 2011 Author Posted March 12, 2011 Ms mult baieti sunteti cei mai de trb si mai rapizi la raspunsuri :grin:
Gabster4Ever Posted March 12, 2011 Author Posted March 12, 2011 Nu merge am bagat cum miati zis da numi apare pe mapa nush ce are.Si apropo eu am primit modu de la cineva daca dau compilare numi mai merge sv deci nu pot modifica nimic in gm........
Question
Gabster4Ever
/* [FS] By HsY */ #include <a_samp> #define COLOR_ORANGE 0xFF9900AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_BLUE 0x2641FEAA #define FILTERSCRIPT forward GateClose(); new bartataglia; new poarta; public OnFilterScriptInit() { poarta = CreateObject(975, 1529.6015625, -1685.9583740234, 14.057502746582, 0, 0, 0); bartataglia = CreateObject(988, 902.79235839844, -946.18060302734, 39.499565124512, 0, 0, 6); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/poartals", true)==0) { MoveObject(poarta, 1539.8341064453, -1686.0211181641, 14.224103927612, 2); SetTimer("GateClose", 8000, 0); SendClientMessage(playerid, COLOR_BLUE,"Ai deschis poarta,in 8 secunde poarta se va inchide"); GivePlayerMoney(playerid,0); return 1; } if (strcmp(cmdtext, "/bartataglia", true)==0) { MoveObject(bartataglia, 902.78308105469, -946.18634033203, 34.884086608887, 3); SetTimer("GateClose", 10000, 0); SendClientMessage(playerid, COLOR_ORANGE,"Ai deschis poarta spre bar"); GivePlayerMoney(playerid,0); return 1;} } public GateClose() { MoveObject (poarta,1529.6015625, -1685.9583740234, 14.057502746582, 2); MoveObject (bartataglia,902.79235839844, -946.18060302734, 39.499565124512, 3); return 1; }D:\desk\xTEam\filterscripts\poarta.pwn(46) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
6 answers to this question
Recommended Posts