how to make a /enter ?
#3

Quote:
Originally Posted by JoshP
Посмотреть сообщение
i want like public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/enter", cmdtext))
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 372.5565, -131.3607, 1001.4922);
SetPlayerShopName(playerid,"FDPIZA");
SendClientMessage(playerid,0xFFFFFFFF,"Welcome to Pizza Stack!");
return 1;
}
return 0;
}
Well, you should get Ammunation's shop's coordinates by using /save in front of its' shop. And add a PlayerToPoint. So the command must me this:

pawn Код:
if(strcmp("/enter", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(15.0, playerid, 0.0, 0.0, 0.0 )) // Paste the shop's coordinates to 0.0's.
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 372.5565, -131.3607, 1001.4922);
SetPlayerShopName(playerid,"FDPIZA");
SendClientMessage(playerid,0xFFFFFFFF,"Welcome to Pizza Stack!");
}
return 1;
}
hope this helps.
Reply


Messages In This Thread
how to make a /enter ? - by JoshP - 18.07.2013, 20:57
Re: how to make a /enter ? - by JoshP - 18.07.2013, 21:12
Re: how to make a /enter ? - by Rufio - 18.07.2013, 21:35
Re: how to make a /enter ? - by Twizted - 18.07.2013, 21:37
Re: how to make a /enter ? - by Rufio - 18.07.2013, 21:44
Re: how to make a /enter ? - by JoshP - 21.07.2013, 20:19
Re: how to make a /enter ? - by Pottus - 21.07.2013, 21:16

Forum Jump:


Users browsing this thread: 3 Guest(s)