*** Terrible Title Removed -
Shane_Kingston - 24.10.2012
hey guys i am looking for how to make a gang house ..............can anyone tell me ........Here is the player position to make entry = 116,2172.3677,-1819.2433,16.1406,179.5074,0,0,0,0,0,0 ............................and the interior id is 18026.
Please tell and i wil rep you
Re: How to add this ? -
Glad2BeHere - 24.10.2012
SetPlayerPos(playerid,2172.3677,-1819.2433,16.1406);
SetPlayerInterior(playerid, 18026);
SetPlayerFacingAngle( playerid, 179.5074);
add this to ur entering command
Re: How to add this ? -
Shane_Kingston - 24.10.2012
i am using this = tel me is this correct or not
Quote:
warpme(playerid, params[])
{
SetPlayerPos(playerid,2172.3677,-1819.2433,16.1406);
SetPlayerInterior(playerid, 18026);
SetPlayerFacingAngle( playerid, 179.5074);
}
|
Re: How to add this ? -
verlaj - 24.10.2012
try this
Quote:
CMD:enter(playerid,params[])
{
SetPlayerInterior(playerid, 18026);
SetPlayerPos(playerid,2172.3677,-1819.2433,16.1406);
return 1;
}
|
And yes, you also need to define, if(IsplayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
here is 1 example of Sweet house,
Код:
CMD:enter(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2522.8372,-1679.4862,15.4970))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 235.508994,1189.169897,1080.339966);
}
return 1;
}
Re: How to add this ? -
Shane_Kingston - 24.10.2012
It is telling this
Quote:
E:\Server of 0.3e\filterscripts\ganghouse2.pwn(234) : warning 203: symbol is never used: "enter"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|
Re: How to add this ? -
Shane_Kingston - 24.10.2012
Still not working ...............Can you give me a script like the sweet's house......
Quote:
CMD:enter(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2522.8372,-1679.4862,15.4970))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 235.508994,1189.169897,1080.339966);
}
return 1;
}
|
Re: How to add this ? -
verlaj - 24.10.2012
On the top of your script, type
if you dont have zcmd, download it and put it in the following - pawno/include
Re: How to add this ? -
verlaj - 24.10.2012
it will not show the icon in map, just go to sweet's house gate and type /enter, i think it will work(it work for me)