"Change" code? - 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)
+--- Thread: "Change" code? (
/showthread.php?tid=312055)
"Change" code? +rep! -
davve95 - 19.01.2012
Hi!
How to make those codes to just SetPlayerInterior etc...
I don't really know where Y,X,Z Are lol :P . Still haven't figure out ^^
Btw:
Here are the codes I want "Translated"
pawn Code:
AddPlayerClass(78,-0.4174,2525.6877,16.4844,3.4192,0,0,0,0,0,0); // Outside ammo 2
pawn Code:
AddPlayerClass(135,-0.2703,2528.2344,16.4922,8.4109,0,0,0,0,0,0); // ammo2
Re: "Change" code? -
milanosie - 19.01.2012
Find the interior world for those coordinates..
http://weedarr.wikidot.com/interior
PHP Code:
if (strcmp("/enterammunation", cmdtext, true, 10) == 0)
{
if (IsPlayerInRangeOfPoint(playerid, 5.0, -0.4174, 2525.6877, 16.4844)) //The coordinates you gave of the outside of ammunation.. Range to be in is 5 meter
{
SetPlayerPos(playerid,X, Y, Z); // Find the coordinates on samp wiki.
SetPlayerInterior(playerid, interiorID); // The interior World should be on weedarr.wikidot
return 1;
}
else return SendClientMessage(playerid, 0xFF0E0063, "You are not at the entrance of ammunation");
}
Thats all I guess
Re: "Change" code? -
davve95 - 19.01.2012
Hmm sorry for very bad explain.. But I didn't mean that.. I don't know what its named I don't remember :/.
Anyway thanks alot for your help!.. But I mean like this:
I mean: Code like just with out weapons,skin etc.. Just the spawn..
And I said SetPlayerInterior for an example. But thanks alot
Re: "Change" code? -
Gerira Gaijin - 19.01.2012
pawn Code:
AddPlayerClass(78, X, Y, Z, R,0,0,0,0,0,0); // Outside ammo 2
Re: "Change" code? -
Vince - 19.01.2012
Or just use /rs (raw save) instad of /save in the future. Hell a lot easier.
Re: "Change" code? -
davve95 - 19.01.2012
Quote:
Originally Posted by Gerira Gaijin
pawn Code:
AddPlayerClass(78, X, Y, Z, R,0,0,0,0,0,0); // Outside ammo 2
|
Nice!!.. Thanks alot +rep like said
but what does the R means??
Vince: Thanks alot!! +rep for you to xD..
Re: "Change" code? -
milanosie - 19.01.2012
R means rotation
so from 0 to 360 degree
Re: "Change" code? -
davve95 - 20.01.2012
Quote:
Originally Posted by milanosie
R means rotation
so from 0 to 360 degree
|
Ok, thanks alot!.