Problem
#1

Hey, for my RP server, I want the command /showmebank to take the player infront of the bank to show them where it is, but they cant move, and when they are done, they can do /takemeback and it will take them back to where they were... I am a noob scripter and I came up with this but it returns errors.

Код:
	if(strcmp(cmd,"/showmebank", true) ==0)
	{
		GetPlayerPos(playerid, Float:x, Float:y, Float:z);
		SetPlayerPos(playerid, 0,0,0)
		SetPlayerControllable(playerid, 0)
 }
		else if(strcmp(cmd,"/takemeback", true) ==0)
 {
    SetPlayerPos(playerid, x, y, z);
		return 1;
 }
(thats saying 0,0,0, is the bank, (as test))

thanks
Reply


Messages In This Thread
Problem - by Packer5 - 13.04.2009, 17:22
Re: Problem - by Packer5 - 13.04.2009, 17:28
Re: Problem - by GanG$Ta - 13.04.2009, 17:40
Re: Problem - by Packer5 - 13.04.2009, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)