zcmd help
#1

why wont this work

Код:
CMD:gotoisland(playerid, params[])
{
    new vid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid)
	{
		GameTextForPlayer(playerid,"You have teleported to Admin Island",4000,6);
		LinkVehicleToInterior(vid,120);
		SetPlayerInterior(playerid,120);
		SetVehiclePos(vid,4981.62255859,-1901.06604004,2.67791414);
		PutPlayerInVehicle(playerid, vid, 0);
		return 1;
	}
	else
	}

		SetPlayerPos(playerid,4981.62255859,-1901.06604004,2.67791414);
		SetPlayerInterior(playerid,120);
		GameTextForPlayer(playerid,"You have teleported to Admin Island",4000,6);
		return 1;
		}
	}
	return 1;
}
Reply


Messages In This Thread
zcmd help - by yarrum3 - 04.02.2011, 11:08
Re: zcmd help - by HyperZ - 04.02.2011, 11:15

Forum Jump:


Users browsing this thread: 1 Guest(s)