04.03.2010, 06:53
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
2nd....how to make a auto or command gate in samp 0.2
that all pleae help thanks
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; } |
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. |
Originally Posted by Torran
You should really learn to code..
http://forum.sa-mp.com/index.php?topic=2750.0 Quote:
|
new gate;
gate = CreateObject(975, -3301.6923828125, 180.10121154785, 9.0515441894531, 0, 0, 270.67565917969);
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; }