please really need help
#1

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
Reply
#2

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

is that link for command gate??
Reply
#4

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
Reply
#5

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.
Reply
#6

top of script :
new gate;

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

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.
Reply
#8

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
Reply
#9

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.
Reply
#10

//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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)