mimo1188 0 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 kua vsetci hovorite ze to je na tomto fore ale neni to tu ked chcem dat helty a armor na dajake miesto jak v SP ze prejde cez to a uz to ma mam suradnice i som skusal dajake tote addstaticweapon ci co to bolo co som nasiel ale niikde niiiiiiiiiic Link to comment Share on other sites More sharing options...
0 Guest robinzon66 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 Sprav to cez pickup: Hore do modu: new zbranm4; Do OnGameModeInit: zbranm4 = CreatePickup(356,1,SURADNICE); // SURADNICE:v tvare X.Y.Z Do OnPlayerPickUpPickup if(pickupid == zbranm4) { GivePlayerWeapon(playerid,31,200); } Ak nejake problemy,tak kludne napis!! Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 a jake id ma jetpack,helty,armor? ako model ci co som nasiel ale ze ked zobere ta ze mu prida helty ta toto id som nenasiel Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 neide toto naskoci D:\GTA San Andreas\samp022server.win32\zbrane.pwn(35) : error 017: undefined symbol "zbranm4" D:\GTA San Andreas\samp022server.win32\zbrane.pwn(37) : error 001: expected token: ";", but found "-identifier-" D:\GTA San Andreas\samp022server.win32\zbrane.pwn(37) : warning 217: loose indentation D:\GTA San Andreas\samp022server.win32\zbrane.pwn(181) : error 017: undefined symbol "zbranm4" D:\GTA San Andreas\samp022server.win32\zbrane.pwn(185) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. a pwn takto vizera #include // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #if defined FILTERSCRIPT new zbranm4; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" CW"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" CW"); print("----------------------------------\n"); } #endif public OnGameModeInit() { zbranm4 = CreatePickup(348,1,-2674.3300,202.6600,4.3400) // Don't use these lines if it's a filterscript SetGameModeText("cw"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { GivePlayerWeapon(playerid, 16, 2); GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 26, 9999); GivePlayerWeapon(playerid, 28, 9999); GivePlayerWeapon(playerid, 30, 9999); GivePlayerWeapon(playerid, 24, 300); GivePlayerWeapon(playerid, 35, 1); return 1; } public OnPlayerDeath(playerid, killerid, reason) { GivePlayerWeapon(playerid, 16, 2); GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 26, 9999); GivePlayerWeapon(playerid, 28, 9999); GivePlayerWeapon(playerid, 23, 9999); GivePlayerWeapon(playerid, 30, 300); GivePlayerWeapon(playerid, 35, 1); return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == zbranm4) { GivePlayerWeapon(playerid,24,200); } return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } vie dakto co s tim je? Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 ani jedno z toho nema id . Vesta SetPlayerArmour(playerid, pocetvesty) Zivot SetPlayerHealth(vylieceny,pocetzivotu); jetpackt SetPlayerSpecialAction(playerid,2); Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 no ok ale som zistil ze mi to ani neide vid vissie. No abo toto co si mi poslal to sa dava takim istim sposobom ci ako? toten jetpack helty armor Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 btw odstran FS z pawna ( pro blbce ... #if defined FILTERSCRIPT #else atd... Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 no som odstranil je uz menej erroro ale i tak este jeden naskakuje D:\GTA San Andreas\samp022server.win32\zbrane.pwn(36) : error 001: expected token: ";", but found "-identifier-" D:\GTA San Andreas\samp022server.win32\zbrane.pwn(184) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Link to comment Share on other sites More sharing options...
0 Daffy 8 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 skus to takto :wtf: #include new zbranm4; public OnFilterScriptExit() { return 1; } main() { print("\n----------------------------------"); print(" CW"); print("----------------------------------\n"); } public OnGameModeInit() { zbranm4 = CreatePickup(348,1,-2674.3300,202.6600,4.3400); SetGameModeText("cw"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { GivePlayerWeapon(playerid, 16, 2); GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 26, 9999); GivePlayerWeapon(playerid, 28, 9999); GivePlayerWeapon(playerid, 30, 9999); GivePlayerWeapon(playerid, 24, 300); GivePlayerWeapon(playerid, 35, 1); return 1; } public OnPlayerDeath(playerid, killerid, reason) { GivePlayerWeapon(playerid, 16, 2); GivePlayerWeapon(playerid, 24, 9999); GivePlayerWeapon(playerid, 26, 9999); GivePlayerWeapon(playerid, 28, 9999); GivePlayerWeapon(playerid, 23, 9999); GivePlayerWeapon(playerid, 30, 300); GivePlayerWeapon(playerid, 35, 1); return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerPrivmsg(playerid, recieverid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { return 0; } public OnPlayerInfoChange(playerid) { return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == zbranm4) { GivePlayerWeapon(playerid,24,200); } return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } Link to comment Share on other sites More sharing options...
0 Guest robinzon66 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 IDčka zbrani najdes tu: http://wiki.sa-mp.com/wiki/Weapons" onclick="window.open(this.href);return false; 1240 - heart 1242 - armor Jetpack: viewtopic.php?f=8&t=296&hilit=jetpack" onclick="window.open(this.href);return false; Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 no mam to tam ale prejdem cez srdce a nic to nezrobi Link to comment Share on other sites More sharing options...
0 Guest robinzon66 Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 GivePlayerWeapon(playerid,31,200); DatHracoviZbran(hracoveid,idzbrane,pocet municii); //EDIT: Ak si chces doplnit zdravie alebo vestu tak tam daj funkciu,ze mu doplni HP Namiesto GivePlayerWeapon... tam daj ,ak je to : Vesta,tak SetPlayerArmour(playerid,100.0) Zivot,tak SetPlayerHealth(playerid,100.0); Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 ved to je M4 prejdem cez to a ono mi to hodi m4 Link to comment Share on other sites More sharing options...
0 Guest StReeY [Dinti] Odesláno: 28. Listopad, 2008 Share Odesláno: 28. Listopad, 2008 noa ved potom to je dobre ne ? ked mas m4 pickup a prejdes cez to a mas m4 zbran co je natom zle ? Link to comment Share on other sites More sharing options...
0 mimo1188 0 Odesláno: 28. Listopad, 2008 Author Share Odesláno: 28. Listopad, 2008 no toto som chcel a dinti ja som nechcel M4 ale helty a uz to frci Link to comment Share on other sites More sharing options...
Dotaz
mimo1188 0
kua vsetci hovorite ze to je na tomto fore ale neni to tu ked chcem dat helty a armor na dajake miesto jak v SP ze prejde cez to a uz to ma mam suradnice i som skusal dajake tote addstaticweapon ci co to bolo co som nasiel ale niikde niiiiiiiiiic
Link to comment
Share on other sites
14 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now