SA-MP Forums Archive
please really need help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: please really need help (/showthread.php?tid=131581)



please really need help - empty_full - 04.03.2010

1st...how to add house in PENLS

2nd....how to make a auto or command gate in samp 0.2

that all pleae help thanks


Re: please really need help - Rzzr - 04.03.2010

1st: Ask in the PENLS topic or use search
2nd: Use search or the wiki: https://sampwiki.blast.hk/wiki/Automatic_Gates


Re: please really need help - empty_full - 04.03.2010

is that link for command gate??


Re: please really need help - aircombat - 04.03.2010

ongamemodeinit
gate =CreateObject(object, x, y, z, rx, ry, rz);

OnPlayerCommandText
if(strcmp(cmdtext,"/opengate", true) == 0) {
MoveObject(gate,x,y,z,speed); //open gate coordinates
return 1;
}
if(strcmp(cmdtext,"/closegate", true) == 0) {
MoveObject(gate,x,y,z,speed); //closed gate coordinates
return 1;
}
________
Kid zoloft


Re: please really need help - empty_full - 04.03.2010

Quote:
Originally Posted by [AC
Etch ]
ongamemodeinit
gate =CreateObject(object, x, y, z, rx, ry, rz);

OnPlayerCommandText
if(strcmp(cmdtext,"/opengate", true) == 0) {
MoveObject(gate,x,y,z,speed); //open gate coordinates
return 1;
}
if(strcmp(cmdtext,"/closegate", true) == 0) {
MoveObject(gate,x,y,z,speed); //closed gate coordinates
return 1;
}
thanks but need help again it has error

J:\server 0.2\gamemodes\PENSF.pwn(6960) : error 017: undefined symbol "gate"
J:\server 0.2\gamemodes\PENSF.pwn(6960) : error 017: undefined symbol "object"
J:\server 0.2\gamemodes\PENSF.pwn(16874) : error 017: undefined symbol "gate"
J:\server 0.2\gamemodes\PENSF.pwn(16879) : error 017: undefined symbol "gate"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: please really need help - aircombat - 04.03.2010

top of script :
new gate;

send CreateObject(object <== u should replace object with the gate id
________
Threesome italian


Re: please really need help - Torran - 04.03.2010

You should really learn to code..

http://forum.sa-mp.com/index.php?topic=2750.0

Quote:
Originally Posted by f3llah1n
http://compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS - General PAWN related documentation.
Below you can find links to a unofficial wiki which is a copy of the old one:

https://sampwiki.blast.hk/wiki/Category:Tutorials - SA:MP specific PAWN tutorials.
https://sampwiki.blast.hk/wiki/Category:Scripting_Functions - (API) List of SA:MP PAWN functions with descriptions.
https://sampwiki.blast.hk/wiki/Scripting_Basics.html - Page containing the basics of PAWN scripting.
https://sampwiki.blast.hk/wiki/Script_Examples - Examples of how PAWN scripting basics can be put to use.
https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks - List of SA:MP PAWN callbacks with parameters parameters.



Re: please really need help - empty_full - 04.03.2010

here the co or

closed gate

CreateObject(975, -3301.6923828125, 180.10121154785, 9.0515441894531, 0, 0, 270.67565917969);

opened gate

CreateObject(975, -3301.8388671875, 170.10180664063, 9.0515441894531, 0, 0, 270.67565917969);

please do it please

it really many error


Re: please really need help - Torran - 04.03.2010

Quote:
Originally Posted by Torran
You should really learn to code..

http://forum.sa-mp.com/index.php?topic=2750.0

Quote:
Originally Posted by f3llah1n
•http://compuphase.com/pawn/pawn.htm#DOWNLOAD_DOCS - General PAWN related documentation.
Below you can find links to a unofficial wiki which is a copy of the old one:

•https://sampwiki.blast.hk/wiki/Category:Tutorials - SA:MP specific PAWN tutorials.
•https://sampwiki.blast.hk/wiki/Category:Scripting_Functions - (API) List of SA:MP PAWN functions with descriptions.
•https://sampwiki.blast.hk/wiki/Scripting_Basics.html - Page containing the basics of PAWN scripting.
•https://sampwiki.blast.hk/wiki/Script_Examples - Examples of how PAWN scripting basics can be put to use.
•https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks - List of SA:MP PAWN callbacks with parameters parameters.



Re: please really need help - aircombat - 04.03.2010

//top of script :
Код:
new gate;
//Under OnGameModeInit
Код:
gate = CreateObject(975, -3301.6923828125, 180.10121154785, 9.0515441894531, 0, 0, 270.67565917969);
//Under OnPlayerCommandText
i
Код:
f(strcmp(cmdtext,"/opengate", true) == 0) {
MoveObject(gate,-3301.8388671875,170.10180664063, 9.0515441894531,1.500000); 
return 1;
}
if(strcmp(cmdtext,"/closegate", true) == 0) {
MoveObject(gate,-3301.6923828125,180.10121154785,9.0515441894531,1.500000);
return 1;
}
that should work
________
Big Brother Advice